Tag Archives: dhcp

IP Modification Through Command Line

Published by:

Here is the way to change or modification ip address through command line. Do all the command in root privileged.

To set a static ip

#ip addr add 192.168.xxx.xxx dev eth0

to delete a static ip

#ip addr del 192.168.xxx.xxx dev eth0

to set dynamic ip

#dhclient eth0

to set route for static ip

#route add default gw xxx.xxx.xxx.xxx

to clear all ip setting

#ip addr flush dev eth0

OpenDNS

Published by:

Open dns is one of the free dns server in this planet. OpenDNS is a company and service that extends the Domain Name System (DNS) by adding features such as phishing protection and optional content filtering. Sign it up.

I sign up in www.opendns.org in username xxxx@xxxxxxxxx and ********** password.
I use this site as a extra proxy to block certain material from office network.
This is what I set it up
1. in the server
change the nameserver in /etc/resolv.conf to
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

add the following line in /etc/squid/squid.conf
dns_nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

add the following line in /etc/dhcp3/dhcpd.conf
option domain-name-serversxxx.xxx.xxx.xxxxxx.xxx.xxx.xxx ;
I add above line for all dhcp client dns server.

but this is not enough. we need to set up client’s resolv.conf
change them exactly like resolv.conf of server