Page 1 of 1

(solved)How to change IP resolve configuration?

Posted: Tue 29 Nov 2011, 13:01
by gundul3l3k
How to change resolve configuration? I need to change to 8.8.8.8 and 8.8..4.4
in order not to auto use my ISP DNS.thanks for help :lol: :lol: :lol:

Posted: Tue 29 Nov 2011, 14:36
by kattman
Add this to the end of "dhcpcd.config" file.

nohook resolv.conf

Than just just put thease two lines in your "resolv.conf" file.

nameserver 8.8.8.8
nameserver 8.8.4.4

Now dchcp wont overwrite it again!

Posted: Tue 29 Nov 2011, 17:23
by trapster
Use /etc/resolv.conf.head with this in it to keep the nameservers:

Code: Select all

# Generated by dhcpcd from wlan0
# /etc/resolv.conf.head can replace this line
nameserver 8.8.8.8
nameserver 8.8.4.4
nameserver 63.226.12.96
nameserver 72.3.208.251

Posted: Wed 30 Nov 2011, 02:51
by gundul3l3k
I am using dial up modem(zte ac682) that is setup by default and resolvconf automaticaly use Isp DNS ,I need full script or which/where/what do I have to change to?

I have written "nohook resolvconf " in dhcpdconf but nothing happened.thanks


macpup528

Posted: Wed 30 Nov 2011, 03:05
by rcrsn51
Did you try trapster's suggestion above? Go to the folder /etc and create a new file called resolv.conf.head. Add these lines.

Code: Select all

nameserver 8.8.8.8
nameserver 8.8.4.4

Posted: Wed 30 Nov 2011, 04:13
by gundul3l3k
@rcrsn51... yes I have made thats file but the same result when I connect to internet .my ISP DNS shown up. :( it must be akind of script to comannd wvdial/booting conf/ what ever it is ,not to automaticaly use default dns.


note: newbie no knowldge of scripting,thanks

Posted: Wed 30 Nov 2011, 13:35
by Peterm321
gundul3l3k
PostPosted: Today, at 00:13

@rcrsn51... yes I have made thats file but the same result when I connect to internet .my ISP DNS shown up. Sad it must be akind of script to comannd wvdial/booting conf/ what ever it is ,not to automaticaly use default dns.
AFAIK the chatscripts that initialise a modem automatically recreates the file /etc/resolv.conf each time and that file (at least on my system) is the authoritative port of call when determining what DNS servers are going to be used.

So, for example, in order to use a local DNS caching service I had to insert the local nameserver IP into /etc/resolv.conf after starting up the modem but before running Firefox.

Posted: Wed 30 Nov 2011, 14:21
by Aitch
gundul3l3k

Did you try reboot after applying mods?

It sometimes can be cached savefile effect, which will only update with reboot

Aitch :)

Posted: Fri 02 Dec 2011, 00:45
by gundul3l3k
you are rights , I connect first than wrting that domain to the /etc/ resolv.conf....so my domain change. thanks alot guys it realy helpfull