OK. We obviously have some educating to do here.
You are going to use your router to provide you with a static ip address, NOT DNS (Domain name server) addresses. Totally different. Understand what happens when you start your computer. Your Internet Service Provider (ISP) as part of the modem/router logon provides certain information to it, specifically an ip address which it will use and possible some DNS addresses which you may or may not use. Your router then provides your computer with a different address on a different network and acts as a bridge between the two. Now if you don't have a router then your computer uses the ISP information directly but you have a router so your computer and any other computers which may be connected to it are on this other network, a Local Area Network, or LAN. This is why multiple computers can use one internet connection. Now, the router has a list of addresses it will provide computers on the LAN, normally from one of the private network ranges 10.x.x.x, 192.168.x.x, 172.16-31.x.x. In doing this the router checks a list of hardware identities and if it matches then it knows the specific address to issue. That is why if you connect to your router through and ethernet card and later through a different ethernet card or a wifi connection you will get different ips, not the static one you expect unless you have already told the router what you want to do. This is why you need to find out how to log on to your router (read the instructions for that router) and then go to a fixed leases section of it to give it that information. To do that, you first have to get the MAC or hardware address of the devce you will use to connect (totally different from an ip address). You can usually get that from ifconfig. Look for the device you are actually connecting through and look for an entry of the form xx:xx:xx:xx:xx:xx, six hexadecimal numbers separated by colons. Tell your router to give that MAC the ip address you want, probably from the 192.168.x.x range, for example 192.168.1.21. If you can connect through another device make an entry for it also. I would recommend a different ip, using the same could cause a problem down the road. You might use 192.168.1.21 and 192.168.1.22 for example for two devices.
Now, resolv.conf. I assume you have some facility with the command line, so open a terminal. To begin with get the current resolv.conf out of the way, but don't delete it so you can restore it later if you want to. The command is
Code:
sudo mv /etc/resolv.conf /etc/resolv.conf.xxx
Now, assuming you have the specific DNS server(s) you want to use:
Code:
sudo cat > /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
and press CTL-C. Of course you can use your favorite text editor instead of cat if you wish, and use whatever DNS servers you wish. The samples I gave are for the google servers which seem to be pretty popular and always up. You have to have one, can have as many three. I used two for illustration. Once you have created the new resolv.conf,
Code:
sudo chattr -e /etc/resolv.conf
sudo chattr +i /etc/resolv.conf
resolv.conf is now locked so it cannot be changed, period. To do anything with it later, including editing it, you must unlock it:
Code:
sudo chattr -i /etc/resolv.conf
The way the list of name servers works, the system will first contact the first server. If it does not respond or cannot find the address, the system will try the second and then the third if no success. That is why many people use three different, unconnected servers rather than all from google or something. You might try one from google, one from your isp and one from OpenDNS for example.
This keeps everything simple (relatively) and should keep you system working with you in control. Once you know it works and know what you are doing you can tinker with it a little bit at a time. For example you can turn off dnsmasq and you can use different network managers but I would not try yet. Wait until you have things working this way and then try ONE AT A TIME.
I hope I did not get too basic, I certainly had no intention of insulting, but your question and response indicated some confusion somewhere so I thought the best thing was to get very basic just in case.