| Author |
Message |
gundul3l3k
Joined: 07 Nov 2011 Posts: 36 Location: Surabaya,indonesia
|
Posted: Tue 29 Nov 2011, 09:01 Post subject:
(solved)How to change IP resolve configuration? |
|
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
Last edited by gundul3l3k on Thu 01 Dec 2011, 21:00; edited 1 time in total
|
|
Back to top
|
|
 |
kattman
Joined: 11 Jul 2008 Posts: 81
|
Posted: Tue 29 Nov 2011, 10:36 Post subject:
|
|
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!
|
|
Back to top
|
|
 |
trapster

Joined: 28 Nov 2005 Posts: 1966 Location: Maine, USA
|
Posted: Tue 29 Nov 2011, 13:23 Post subject:
|
|
Use /etc/resolv.conf.head with this in it to keep the nameservers:
| Code: | # 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 |
_________________ trapster
Maine, USA
Asus eeepc 1005HA PU1X-BK
Frugal install:Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Puppeee-1.0 AND lupu52 w/ fluxbox
|
|
Back to top
|
|
 |
gundul3l3k
Joined: 07 Nov 2011 Posts: 36 Location: Surabaya,indonesia
|
Posted: Tue 29 Nov 2011, 22:51 Post subject:
|
|
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
|
|
Back to top
|
|
 |
rcrsn51

Joined: 05 Sep 2006 Posts: 7743 Location: Stratford, Ontario
|
Posted: Tue 29 Nov 2011, 23:05 Post subject:
|
|
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: | nameserver 8.8.8.8
nameserver 8.8.4.4 |
|
|
Back to top
|
|
 |
gundul3l3k
Joined: 07 Nov 2011 Posts: 36 Location: Surabaya,indonesia
|
Posted: Wed 30 Nov 2011, 00:13 Post subject:
|
|
@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
|
|
Back to top
|
|
 |
Peterm321
Joined: 29 Jan 2009 Posts: 195
|
Posted: Wed 30 Nov 2011, 09:35 Post subject:
|
|
| Quote: | 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.
|
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: Wed 30 Nov 2011, 10:21 Post subject:
|
|
gundul3l3k
Did you try reboot after applying mods?
It sometimes can be cached savefile effect, which will only update with reboot
Aitch
|
|
Back to top
|
|
 |
gundul3l3k
Joined: 07 Nov 2011 Posts: 36 Location: Surabaya,indonesia
|
Posted: Thu 01 Dec 2011, 20:45 Post subject:
|
|
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
|
|
Back to top
|
|
 |
|