Adding DNS Servers In One Step With DNS-add

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Submitted by htb (Contact Author) (Forums) on Tue, 2009-12-01 12:02. :: Linux | DNS

Adding DNS Servers In One Step With DNS-add

I will present to you a nice tool called DNS-add to add DNS servers to your Unix box, it works with all Linux and Unix machines.

Download link: http://sourceforge.net/projects/isp-fw/files/DNS-add/

So here we go:

 

1. INSTALL

# wget http://downloads.sourceforge.net/project/isp-fw/DNS-add/DNS-add%20v1.0/dns-add.tar.gz?use_mirror=switch

# tar -xvf dns-add.tar.gz

# cd dns-add

# ./setup.sh

 

2. RUNNING DNS-ADD

From the terminal window type:

dns-add

The output should look like this:

...::: ISP-fW DNS add v1.0  :::... http://isp-fw.sourceforge.net/
--== copyleft 2005-2006 ==-- | Free memory:         864
contact isp.devel@gmail.com

You can add up to 9 DNS servers, enter a number from [0-9]: 2
Enter DNS1: 192.168.157.193
Enter DNS2: 192.168.157.251
Done adding 2 DNS!

DNS 192.168.157.193 responded in 0.256 ms
DNS 192.168.157.251 responded in 0.112 ms


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Hypatia (not registered) on Tue, 2009-12-08 17:22.

I have no idea what the utility of this utility is.  There's got to be a Perl one-liner for this, or better yet... edit /etc/resolv.conf.

Submitted by Anonymous (not registered) on Tue, 2009-12-01 18:22.
Why does the dns-add application have its code obfuscated? Download the tarball and browse dns-add.c.
Submitted by Anonymous (not registered) on Tue, 2009-12-01 14:21.
I don't get this. Isn't: "vi /etc/resolv.conf" even easier? (No troll, I am seriously confused about this).
Submitted by Anonymous (not registered) on Wed, 2009-12-02 18:43.
I'd have to agree. It's easier to just nano /etc/resolv.conf.
Sponsored Links: Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com

One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com

One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com

AT&T Synaptic Compute as a Service. Boost your power on demand.

Trial: IBM Cognos Express Reporting, Analysis & Planning