domainname dnsdomainname....etc ??


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers domainname dnsdomainname....etc ??
# 1  
Old 12-20-2004
domainname dnsdomainname....etc ??

is there a variable that controls whether the settings of the domainname and dnsdomainame, nisdomaname and hostname are global or local (as in static).. i keep setting the values for these commands and after a while they disappear. how can I keep one static value that will remain even after I have logged out and logged back in.. i know you have to su to change and and i you have to use the /etc/hosts for dnsdomainname change but I still keep getting the same results.. when Iog out and log back in they have disappeared..
any feedback welcome.
moxxx68
# 2  
Old 12-20-2004
Have you added your hostname to the file HOSTNAME in /etc
# 3  
Old 12-20-2004
yes
# 4  
Old 12-20-2004
..........

have a look at domainname(1M). on solaris you have to create a /etc/defaultdomain......

gP
# 5  
Old 12-20-2004
thanx
# 6  
Old 12-21-2004
General topics are fine, but what OS are you talking about?

Each OS has config files where you hardcode the hosthames and resolution files as on HPUX /etc/resolv.conf and /etc/rc.config.d/netconf....
# 7  
Old 12-21-2004
Indeed - many RH based Linux distro's use /etc/sysconfig/network for these kinds of definitions (as well as /etc/resolv.conf as Kelam points out).

Can you post the output of uname -a on your system so we know what you're working with?

Cheers
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. IP Networking

ddns-rev-domainname being created wrong.

Greetings all, I have been battling with this problem for some time now, and I am not sure if I am just not seeing the obvious anymore or have made a stupid mistake, but I just can seem to get the reverse address in my network to run the right way. Short description of my network: I have a... (3 Replies)
Discussion started by: Adesso
3 Replies

2. Linux

domainname command

Hey, I've been on this for a while... can somebody explain to me what the domainname command really does. The man pages don't tell enough. And how can i have the domain name set so it will be the same all the time when the OS boots up. (4 Replies)
Discussion started by: byblyk
4 Replies

3. UNIX for Dummies Questions & Answers

question about domainname

I'm kindda confused about domainname and /etc/defaultdomain. If I type domainname tesT.com, will this be added to /etc/defaultdomain or do I need to add manually on /etc/defaultdomain as well?...second question, if I type domainname tesT.com...is it case sensitive? Thank you. (1 Reply)
Discussion started by: dookeobih
1 Replies
Login or Register to Ask a Question