View previous topic :: View next topic |
Author |
Message |
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Wed Sep 11, 2002 12:46 am Post subject: Issue with /etc/hostname and dhcpcd |
|
|
According to the Gentoo install guide, I'm supposed to put my "fully qualified hostname" (ie host.domain.com) in /etc/hostname.
Problem is, when I do that, the dhcp server refuses to give me a valid DNS mapping for my requested hostname. It only works when I only put the first part of the hostname in /etc/hostname. If I do that, the server gives me a DNS mapping, and other hosts can ping me by name.
But if put the whole thing in, my IP doesn't get associated with a name.
Unfortunately, NOT putting the whole thing in seems to make some Linux programs like X unhappy...should I just correct this in /etc/hosts and go on my way?
And does anyone have any clue why this problem happens in the first place? |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Wed Sep 11, 2002 1:05 am Post subject: |
|
|
i dont think it has to be a qualified name....i just made mine up JaiBaba.home.net ....i thought you could put what ever you wanted |
|
Back to top |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Wed Sep 11, 2002 1:22 am Post subject: |
|
|
Yes, it doesn't have to be qualified, but in my case I do in fact obtain a qualified name since the DHCP server updates the DNS record based on what I provide with the "-h" option to dhcpcd (I'm at a college).
The problem I'm having is a result of the server not liking that to be in the same format as my machine.
In any case, if all else fails, I think I can just hardcode it into the conf file and it should be okay.
Mostly I'm just curious as to what's going on here. |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Wed Sep 11, 2002 1:34 am Post subject: |
|
|
what does your /etc/hosts file look like there was a thread about what made mozilla andsome X stuff launch faster..like in mine i have
Code: | 127.0.0.1 localhost JaiBaba.home.net JaiBaba |
some peeps were talking like it made a difference as to how fast the programs launched...i really didnt see too uch difference. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Sep 11, 2002 1:40 am Post subject: |
|
|
The Name resolution thread? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Mnemia Guru
Joined: 17 May 2002 Posts: 476
|
Posted: Wed Sep 11, 2002 1:48 am Post subject: |
|
|
I read through the Name Resolution thread and my /etc/hosts is set up in a similar fashion to the example above.
In any case, it works for me now, so no biggie.
I'm assuming the differences in the required options for dhcpcd is just due to differences in the way that DNS/DHCP/domain servers are setup (my school is set up primarily for WinXP). |
|
Back to top |
|
|
|