How to use dhcpclient to fetch only dns server address?

Asked by dierre

In my home network, I would like every computer to keep always the same ip address. Unfortunately, the dhcp server which is built-in in my wifi router doesn't help, since it keeps no memory of previous leases and cannot be configured in order to lease an address depending on the MAC address / hostname of the requester.

Then I thought I'd switch to fixed-ip address allocation, while I still need to use the dhcp for the clients to fetch the address of the dns server, which is my isp's.

How do I configure dhcpclient so that it uses a fixed ip address while still asking for the dns resolver address? I think it has something to do with the "supersede" directive in /etc/dhcpclient.conf but I really couldn't manage to have it working. :-(

Thank you in advance to anybody who will be able to help.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu dhcp3 Edit question
Assignee:
No assignee Edit question
Solved by:
dierre
Solved:
Last query:
Last reply:
Revision history for this message
williamts99 (williamts99) said :
#1

You can usually specify the IP address of the router for your DNS.

Let us know if that works for you.

Also, what kind of router are you using?

Best Regards,
Williamts99

Revision history for this message
dierre (fdr) said :
#2

Thanks for the suggestion, I didn't think of that. Anyway, I tried but it doesn't work. I tested it with dig @192.168.1.1 www.google.com but I got no reply -- it seems that my router does not include a dns resolver/forwarder.

It is a Linksys WAG200G.

Have you please got any other ideas?
Thank you.

Revision history for this message
Paolo Sammicheli (xdatap1) said :
#3
Revision history for this message
williamts99 (williamts99) said :
#4

Yes, from reading the change log, this should fix the problem right away.

1.01.01
Note: If upgrade from current firmware to v1.01.01 is not possible, upgrade to v1.00.09 first.

- Fixes issue with incorrect port range for blocked services
- Fixes issue with WAN DHCP request/offer packet length
- Fixes issue with error for overlapping ports entries on blocked services
- Fixes issue with WAN DHCP LCP echo request
- Fixes issue with Device automatically connecting to the Internet during startup when Connect on Demand is configured
- Fixes issue with WEP key range restriction not enforced
- Fixes issue with incorrect range restriction for MTU Size
- Fixes issue with Internet LED lit when WAN interface disconnected
- Fixes issue with WEP 128-bit generating only 1 WEP Key through pass-phrase
- Fixes issue with PPPoE Connect on Demand not disconnecting after idle timeout period
- Adds incoming and outgoing logs to display network activity
- Adds multiple language feature to firmware, which can be changed without firmware upgrade

1.00.09
- Multi-language DE-EN-FR firmware
- To upgrade from previous firmware versions
  1) Upgrade using firmware: WAG200G_V1.00.09_EN.img
  2) Upgrade using firmware: WAG200G_A_1.00.09_International.img

1.00.05
- Initial Release

Revision history for this message
dierre (fdr) said :
#5

Ok, thanks, I'll try upgrading as soon as I have a little time.
I had thought about upgrading the firmware earlier, but I didn't do it because I couldn't see in the changelog any issue I was experiencing...
Which exactly is the changelog item that makes you think it should fix the problem?

Thank you again for your help, I will let you know the results of the firmware upgrade as soon as I do it.

Revision history for this message
jz (jz+) said :
#6

"Fixes issue with WAN DHCP request/offer packet length"

After your firmware upgrade you should be able to assign hosts static IP addresses.

Revision history for this message
Best dierre (fdr) said :
#7

Thank you for your help. I upgraded the firmware of my router and now it offers a DNS resolver service for my lan. Therefore I have been able to switch my computers to fixed-IP allocation.

Thank you again.