• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

static DNS

Cogman

Lifer
I have a Netgear wireless router (MR814 v3) that does not work with forwarding DNS information. It assigns out 192.168.0.1 as my DNS server but will not allow me to browse around anywhere (I have checked, and it does have the correct DNS addresses)

With windows, it is simple to click a ratio button and type in the IP address of the DNS server you would like to use, but I can't figure out how to do a similar fix in Ubuntu linux

I can get it to change temporarily, but if I restart the computer (or even let it sleep) I will loose the DNS IP addresses and have to reset them (a pain if someone else wants to serf the web)

So how to I set up a permanent Static DNS server with Ubuntu linux? (or fix my wireless router...)
 
id try upgrading the firmware on your router if you can

otherwise you should add your DNS servers to /etc/resolv.conf

at the command line do

sudo nano* /etc/resolv.conf

and add the following:

nameserver xxx.xxx.xxx.xxx

fill in your DNS entries and save the file. you can add as many as you like, just keep it one per line

* i use nano for this, you can use whatever gnome text editor you prefer, but it will have to be done with sudo or gksudo since it needs root permissions to be edited. that *should* solve your problem.
 
I have tried upgrading the firmware, but I came to find out that this router does not have any new firmware updates... 🙁 so there is nothing I can really do there (as this router is pretty old, on has 802.11b compatability)

As for the resolv.conf file, Ubuntu cleaverly rewrite the resolv.conf file when it connects to a DHCP network, I don't know what "Feature" this is, but I don't want it turned on. (so I can add the nameservers that I want to use, but Ubuntu will just rewrite it when it reconnects)

Thanks for the sujestions though, Any more from anyone?
 
Originally posted by: n0cmonkey
Look at the dhclient configuration file.

Beautiful! Thank you very much, it worked like a charm.

For those that don't know on ubuntu (and I'm assuming debian based OS's) there is a file in /etc/dhcp3/ called dhcpclient.conf in that file there is a line that says

#prepend domain-name-servers 127.0.0.1;

All I had to do was erase the # and change the line to be

prepend domain-name-servers 208.29.92.82, 208.38.94.92; (not real DNS addresses)

Viola, it worked excellently.

Again, thanks for the help
 
Back
Top