View previous topic :: View next topic |
Author |
Message |
jkcunningham l33t
Joined: 28 Apr 2003 Posts: 649 Location: 47.49N 121.79W
|
Posted: Wed Jul 16, 2003 5:14 pm Post subject: Using dhcpcd to 'educate' DNS about hostname |
|
|
Maybe this is obvious to many of you, but it took me awhile to figure it out, so I thought I'd post it for others.
The problem I had was that after migrating from SuSE to Gentoo at work, the company DNS servers no longer recognized the name of my machine, making it impossible for me to have mail routed properly and a host of other problems. The server management was inaccessable to me, so I couldn't have them fix it. But somehow DNS figured out who I was before on its own. After a lot of googling I came to the conclusion it was the dhcpcd daemon that was had been informing it. Here's what finally worked for me:
(1) Modify /etc/conf.d/net so it has the following line:
Code: |
dhcpcd_eth0="-R -N -h your.fully.qualified.hostname"
|
The -R tells it to leave /etc/resolv.conf alone
The -N tells it to leave /etc/ntp.conf alone
Kill dhcpcd if its already running, and restart it this way:
Code: |
# dhcpcd -n -R -N -h your.fully.qualified.hostname
|
If you look in /etc/dhcpc/dhcpcd-eth0.info you should see your hostname as you specified it. After this, try
Code: |
# dig your.fully.qualified.hostname
|
and it should show up.
-Jeff |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Wed Jul 16, 2003 5:58 pm Post subject: |
|
|
Moving to Docs, Tips & Tricks.
Thanks puggy. _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|