22 November 2009

DNS Settings in FreeBSD 6.1 Linux

Actually, this tutorial just for add new hosts or servers into DNS Server based on FreeBSD 6.1 Linux. The DNS Server itself has installed and running well. In this example, I want to add 2 hosts with different name server, that are :
  1. dl1.batan.go.id for IP Address 202.46.3.77
  2. mrtg.batan.go.id for IP Address 202.46.3.71

The steps are :
1. Edit /etc/namedb/master/batan.go.id file.

Code :
# vi /etc/namedb/master/batan.go.id

Add 2 lines below on that file :
mrtg IN A 202.46.3.71
dl1 IN A 202.46.3.77

2. Restart named
Code :
# /etc/rc.d/named restart

3. Testing

From DNS Server :
Code :
# nslookup
> mrtg
Server: 202.46.2.222
Address: 202.46.2.222#53

Name: mrtg.batan.go.id
Address: 202.46.3.71
> dl1
Server: 202.46.2.222
Address: 202.46.2.222#53

Name: dl1.batan.go.id
Address: 202.46.3.77


From Client :
You can make another testing from Client with web browser. Enter address below for
testing on your address bar.
  1. http://mrtg.batan.go.id/
  2. ftp://dl1.batan.go.id/
Another testing from client, you can use PING to the hosts.

No comments:

Post a Comment