(solved)How to change IP resolve configuration?

Booting, installing, newbie
Post Reply
Message
Author
gundul3l3k
Posts: 36
Joined: Mon 07 Nov 2011, 15:45
Location: Surabaya,indonesia

(solved)How to change IP resolve configuration?

#1 Post 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:
Last edited by gundul3l3k on Fri 02 Dec 2011, 01:00, edited 1 time in total.

kattman
Posts: 87
Joined: Fri 11 Jul 2008, 21:54

#2 Post 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!

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#3 Post 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
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

gundul3l3k
Posts: 36
Joined: Mon 07 Nov 2011, 15:45
Location: Surabaya,indonesia

#4 Post 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

User avatar
rcrsn51
Posts: 13096
Joined: Tue 05 Sep 2006, 13:50
Location: Stratford, Ontario

#5 Post 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

gundul3l3k
Posts: 36
Joined: Mon 07 Nov 2011, 15:45
Location: Surabaya,indonesia

#6 Post 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

Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

#7 Post 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.

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#8 Post by Aitch »

gundul3l3k

Did you try reboot after applying mods?

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

Aitch :)

gundul3l3k
Posts: 36
Joined: Mon 07 Nov 2011, 15:45
Location: Surabaya,indonesia

#9 Post 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

Post Reply