Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using dhcpcd to 'educate' DNS about hostname
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
jkcunningham
l33t
l33t


Joined: 28 Apr 2003
Posts: 649
Location: 47.49N 121.79W

PostPosted: Wed Jul 16, 2003 5:14 pm    Post subject: Using dhcpcd to 'educate' DNS about hostname Reply with quote

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
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7694
Location: Pelotas, BR

PostPosted: Wed Jul 16, 2003 5:58 pm    Post subject: Reply with quote

Moving to Docs, Tips & Tricks.

Thanks puggy.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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