Search This Blog

Showing posts with label Internet. Show all posts
Showing posts with label Internet. Show all posts

Saturday, March 10, 2007

Running MTNL Triband in Fedora Core 6

MTNL Internet users will be devastated to find that their net is not working in fedora core 6.
Well, there is a way to go about fixing it.

Actually, Fedora detects the DNS wrongly as 192.168.1.1. It can be changed to the correct DNS by going to System->Network and then the DNS tab where you enter your primary DNS Server correctly. But there is a script called dns-client in 'sbin' directory which will make sure that it gets automatically changed to 192.168.1.1 again after some time automatically.

So, I decided to dabble with the script and I changed some things to make sure it doesnt detect it again automatically.

There is a function make_resolv_conf() (line 43) which is responsible for detecting DNS server automatically. I deleted the body of the function from line(44-70). Instead i wrote the following line in the function:
echo nameserver 59.179.243.71 > /etc/resolv.conf
Instead of 59.179.243.71 you can enter your own DNS server.

The script can be edited only through root permissions. You can edit the file by writing the command:

gedit /sbin/dhclient-script

and then do the required changes.