[opensuse] domainname
How to change domainname I run opensuse 11.2 without x and no yast -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
mattias jonsson said the following on 06/30/2010 03:32 PM:
How to change domainname I run opensuse 11.2 without x and no yast
try typing 'domainname' at the CLI prompt. Or failing that 'apropos domainname' -- Definitions are temporary verbalizations of concepts, and concepts -- particularly difficult concepts -- are usually revised repeatedly as ourknowledge and understanding grows. -- Ernst Mayr -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, Jun 30, 2010 at 09:32:45PM +0200, mattias jonsson wrote:
How to change domainname I run opensuse 11.2 without x and no yast
By adjusting the content of /etc/HOSTNAME and calling service boot.localnet restart Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
Hello, On Wed, 30 Jun 2010, Lars Müller wrote:
On Wed, Jun 30, 2010 at 09:32:45PM +0200, mattias jonsson wrote:
How to change domainname ^^^^^^^^^^ (emphasis for Lars)
I run opensuse 11.2 without x and no yast
By adjusting the content of /etc/HOSTNAME and calling
service boot.localnet restart
Sure? $ cat /etc/HOSTNAME slarty $ dnsdomainname dhaller.de $ domainname $ What you want to do is edit /etc/hosts. You should have 127.0.0.1 fully.qualified.host.domain.tld alias1 alias2 (with alias1 = hostname). You can also check with: $ hostname slarty $ hostname -d dhaller.de $ hostname -f slarty.dhaller.de The /etc/hosts contains the corresponding line for that: 127.0.0.1 slarty.dhaller.de localhost slarty (if you don't use the FQDN as the first name after the IP, hostname -f will report that, not the FQDN. And, some apps will fail doing "what is right and proper", e.g. as domain-part in Msg-IDs [Ed. note: loud and explicit cursing elided]). For IPv6, you'll need matching entries for ::1 (IIRC, I'm not into IPv6). Oh, and setup your /etc/nsswitch.conf accordingly with at least: hosts: files dns And I got quite a bunch of other stuff in my hosts, e.g.: 127.0.1.1 pagead.googlesyndication.com pagead2.googlesyndication.com 127.0.1.1 ad.doubleclick.com ad.doubleclick.net ad.uk.doubleclick.net 127.0.1.1 www.google-analytics.com ssl.google-analytics.com google-analytics.com I wish one could use wildcards there ;) -dnh PS: Anyone else here read nsswitch.conf as "nameserver service witch", or something alike, with "witch" at the end anyway, not "switch"? Influenced by /lib/libnss_* in my case, I think ... -- Shouldn't a "programmer's editor" be called a "bugger"? -- Graham Reed -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Fri, Jul 02, 2010 at 03:47:53AM +0200, David Haller wrote:
On Wed, 30 Jun 2010, Lars Müller wrote:
On Wed, Jun 30, 2010 at 09:32:45PM +0200, mattias jonsson wrote:
How to change domainname ^^^^^^^^^^ (emphasis for Lars)
I run opensuse 11.2 without x and no yast
By adjusting the content of /etc/HOSTNAME and calling
service boot.localnet restart
Sure?
No. It has to be /etc/hosts I'm no longer sure what I tried yesterday. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On Friday 02 July 2010 11:21:01 Lars Müller wrote:
Sure?
No. It has to be /etc/hosts
Actually no, it has to be "whatever it is you are using for hostname lookups" At work I have nothing in /etc/hosts, it's all from dns, and if this is the case, updating /etc/hosts only would be grounds for summary execution. You don't want one machine to have a different idea of its domain than all other machines Also, don't forget to update services. smtp, http, most things have their own config files where the domain name is stored Anders -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
David Haller said the following on 07/01/2010 09:47 PM:
And I got quite a bunch of other stuff in my hosts, e.g.:
127.0.1.1 pagead.googlesyndication.com pagead2.googlesyndication.com 127.0.1.1 ad.doubleclick.com ad.doubleclick.net ad.uk.doubleclick.net 127.0.1.1 www.google-analytics.com ssl.google-analytics.com google-analytics.com
I wish one could use wildcards there ;)
I presume you are blacklisting :-) Take a look at http://pgl.yoyo.org/as/ Its not wild-cards but it does offer a way of dealing with in DNS. -- The state can't give you free speech, and the state can't take it away. You're born with it, like your eyes, like your ears. Freedom is something you assume, then you wait for someone to try to take it away. The degree to which you resist is the degree to which you are free... --Utah Phillips -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello, On Fri, 02 Jul 2010, Anton Aylward wrote:
David Haller said the following on 07/01/2010 09:47 PM:
And I got quite a bunch of other stuff in my hosts, e.g.: [..] I presume you are blacklisting :-)
Yes.
Take a look at http://pgl.yoyo.org/as/ Its not wild-cards but it does offer a way of dealing with in DNS.
Well, that's basically what I do, resp. trying to dig up all IPs for those hosts. Thanks though. -dnh -- On-line, adj.: The idea that a human being should always be accessible to a computer. -- BSD fortune file -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Anton Aylward
-
David Haller
-
Lars Müller
-
mattias jonsson