Networking Forums

Networking Forums > Computer Networking > Linux Networking > Getting a router to name-serve DHCP clients.

Reply
Thread Tools Display Modes

Getting a router to name-serve DHCP clients.

 
 
DonnySP
Guest
Posts: n/a

 
      05-24-2008, 04:05 PM
Hi,

I'm no expert in this stuff so I hope this isn't a stupid question. I've
Googled extensively but cannot find an answer.

I have a U.S. Robotics Wireless MAXg ADSL Gateway router. It is set up
to act as a DHCP server. I have a linux box, hostname badger, set up to
be a DHCP client.

Using another linux box, I cannot resolve the name badger. For example,
"dig +short @192.168.1.1 badger" returns nothing. (Where 192.168.1.1 is
the address of the router.)

What do I need to do to get this to work?

Thanks,
DonnySP
 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      05-24-2008, 07:12 PM
DonnySP wrote:
> Hi,
>
> I'm no expert in this stuff so I hope this isn't a stupid question. I've
> Googled extensively but cannot find an answer.
>
> I have a U.S. Robotics Wireless MAXg ADSL Gateway router. It is set up
> to act as a DHCP server. I have a linux box, hostname badger, set up to
> be a DHCP client.
>
> Using another linux box, I cannot resolve the name badger. For example,
> "dig +short @192.168.1.1 badger" returns nothing. (Where 192.168.1.1 is
> the address of the router.)
>
> What do I need to do to get this to work?
>
> Thanks,
> DonnySP


You could try adding a "send host-name badger" to your dhcp client
configuration file, which on my (Debian) system is
/etc/dhcp3/dhclient.conf assuming that you are using the ISC dhcp client.

Or perhaps the nameserver on the router just cannot resolve it ;-(

Robert

 
Reply With Quote
 
DonnySP
Guest
Posts: n/a

 
      05-25-2008, 03:41 PM
Robert Harris wrote:
> DonnySP wrote:
>> Hi,
>>
>> I'm no expert in this stuff so I hope this isn't a stupid question. I've
>> Googled extensively but cannot find an answer.
>>
>> I have a U.S. Robotics Wireless MAXg ADSL Gateway router. It is set up
>> to act as a DHCP server. I have a linux box, hostname badger, set up to
>> be a DHCP client.
>>
>> Using another linux box, I cannot resolve the name badger. For example,
>> "dig +short @192.168.1.1 badger" returns nothing. (Where 192.168.1.1 is
>> the address of the router.)
>>
>> What do I need to do to get this to work?
>>
>> Thanks,
>> DonnySP

>
> You could try adding a "send host-name badger" to your dhcp client
> configuration file, which on my (Debian) system is
> /etc/dhcp3/dhclient.conf assuming that you are using the ISC dhcp client.
>
> Or perhaps the nameserver on the router just cannot resolve it ;-(
>
> Robert
>


Thanks for the suggestion. Unfortunately it didn't help. I have
contacted the router manufacturer, but in the meantime, any more ideas guys?

Donny
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      05-25-2008, 05:34 PM
DonnySP wrote:
> Robert Harris wrote:
>> DonnySP wrote:
>>> Hi,
>>>
>>> I'm no expert in this stuff so I hope this isn't a stupid question. I've
>>> Googled extensively but cannot find an answer.
>>>
>>> I have a U.S. Robotics Wireless MAXg ADSL Gateway router. It is set up
>>> to act as a DHCP server. I have a linux box, hostname badger, set up to
>>> be a DHCP client.
>>>
>>> Using another linux box, I cannot resolve the name badger. For example,
>>> "dig +short @192.168.1.1 badger" returns nothing. (Where 192.168.1.1 is
>>> the address of the router.)
>>>
>>> What do I need to do to get this to work?
>>>
>>> Thanks,
>>> DonnySP

>>
>> You could try adding a "send host-name badger" to your dhcp client
>> configuration file, which on my (Debian) system is
>> /etc/dhcp3/dhclient.conf assuming that you are using the ISC dhcp client.
>>
>> Or perhaps the nameserver on the router just cannot resolve it ;-(
>>
>> Robert
>>

>
> Thanks for the suggestion. Unfortunately it didn't help. I have
> contacted the router manufacturer, but in the meantime, any more ideas
> guys?
>
> Donny


You could run DHCP and DNS on one of your Linux boxes instead of on the
router. The program "dnsmasq" does both of them well.

Robert
 
Reply With Quote
 
Roby
Guest
Posts: n/a

 
      05-26-2008, 12:49 PM
DonnySP wrote:

> Robert Harris wrote:
>> DonnySP wrote:
>>> Hi,
>>>
>>> I'm no expert in this stuff so I hope this isn't a stupid question. I've
>>> Googled extensively but cannot find an answer.
>>>
>>> I have a U.S. Robotics Wireless MAXg ADSL Gateway router. It is set up
>>> to act as a DHCP server. I have a linux box, hostname badger, set up to
>>> be a DHCP client.
>>>
>>> Using another linux box, I cannot resolve the name badger. For example,
>>> "dig +short @192.168.1.1 badger" returns nothing. (Where 192.168.1.1 is
>>> the address of the router.)
>>>
>>> What do I need to do to get this to work?
>>>
>>> Thanks,
>>> DonnySP

>>
>> You could try adding a "send host-name badger" to your dhcp client
>> configuration file, which on my (Debian) system is
>> /etc/dhcp3/dhclient.conf assuming that you are using the ISC dhcp client.
>>
>> Or perhaps the nameserver on the router just cannot resolve it ;-(
>>
>> Robert
>>

>
> Thanks for the suggestion. Unfortunately it didn't help. I have
> contacted the router manufacturer, but in the meantime, any more ideas
> guys?
>
> Donny


Does your router support "static DHCP" ... which assigns the same ip
address to a given mac address? My router does, and I do name resolution
by having ip's/hostnames listed in /etc/hosts on each machine. For example,
if badger's ip is 192.168.0.10 and bullfrog is 192.168.0.11, then this goes
in /etc/hosts on every box:

192.168.0.10 badger
192.168.0.11 bullfrog
.... etc

My eleven node lan (which includes windows boxen) has been working this
way for a long time. I prefer it to assigning DHCP to a certain machine
because there's no one that is always running.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newb: clients are picking up router DHCP, not DC DHCP sklett Windows Networking 3 07-29-2006 04:07 AM
Forcing One DHCP Scope to Serve Only Reservations? Will Windows Networking 4 06-20-2006 07:38 PM
Linksys Router Incomplete DHCP Clients Table Robert Stanley Wireless Networks 1 12-25-2005 11:57 AM
MN-700 wont serve, cant serve, cant disable firewall GuardrailKiller Broadband Hardware 4 07-17-2004 09:04 PM
2003 Server, DHCP won't serve i.p. Jon Windows Networking 2 11-27-2003 11:32 PM



1 2 3 4 5 6 7 8 9 10 11