Hello guys, I'm new in FreeBSD, and right now I want to try build my own DNS server. I already made my setting, but until now I cannot browse any website on the internet when using my own DNS derver. Anyway, thank you in advance.
Here's my setting:
/etc/hosts
/etc/resolv.conf
/etc/rc.conf
/etc/namedb/named.conf
/etc/namedb/master/epicfail.db
/etc/namedb/master/47.62.211.192.in-addr.arpa
This the result when I try from VPS itself:
I think that's all my setting so far. Please kindly tell me where my mistake is and if possible tell me how to correct it.
BTW, how do we see the BIND logfile? I try to use /var/log/messages but I think it's not BIND's logfile.
Thank you for all your attention and sorry for my bad English.
Here's my setting:
/etc/hosts
Code:
::1 localhost localhost.epicfail.web.id
127.0.0.1 localhost localhost.epicfail.web.id
192.211.62.47 server1 server1.epicfail.web.id.
192.211.62.47 server1.epicfail.web.id.
/etc/resolv.conf
Code:
domain epicfail.web.id
search epicfail.web.id
nameserver 192.211.62.47
nameserver 8.8.8.8
nameserver 4.2.2.2
/etc/rc.conf
Code:
hostname="server1.epicfail.web.id"
ifconfig_re0=" inet 192.211.62.47 netmask 255.255.255.128"
defaultrouter="192.211.62.1"
sshd_enable="YES"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"
apache22_enable="YES"
accf_http_load="YES"
sendmail_enable="YES"
named_enable="YES"
/etc/namedb/named.conf
Code:
listen-on { 192.211.62.47; };
forwarders {
192.211.62.47;
192.211.62.1;
8.8.8.8;
4.2.2.2;
};
zone "epicfail.web.id" {
type master;
file "/etc/namedb/master/epicfail.db";
};
zone "62.211.192.in-addr.arpa" {
type master;
file "/etc/namedb/master/47.62.211.192.in-addr.arpa";
};
/etc/namedb/master/epicfail.db
Code:
$TTL 3600 ;1 hour defaut TTL
epicfail.web.id. IN SOA server1.epicfail.web.id. root.epicfail.web.id. (
2006051501 ;Serial
10800 ;Refresh
3600 ;Retry
604800 ;Expire
300 ;Negative Response TTL
)
;DNS Servers
@ IN NS server1.epicfail.web.id.
;MX Records
IN MX 10 mx.epicfail.web.id.
IN MX 20 mail.epicfail.web.id.
IN A 192.211.62.47
;Machine Names
localhost IN A 192.211.62.47
server1 IN A 192.211.62.47
mx IN A 192.211.62.47
mail IN A 192.211.62.47
;Aliases
www IN CNAME epicfail.web.id.
/etc/namedb/master/47.62.211.192.in-addr.arpa
Code:
$TTL 3600 ;1 hour default TTL
@ IN SOA server1.epicfail.web.id. root.epicfail.web.id (
2006051501 ;Serial
10800 ;Refresh
3600 ;Retry
604800 ;Expire
300 ;Negative Response TTL
)
IN NS server1.epicfail.web.id.
47 IN PTR server1.epicfail.web.id.
47 IN PTR mail.epicfail.web.id.
47 IN PTR mx.epicfail.web.id.
This the result when I try from VPS itself:
Code:
server1# host -t ns epicfail.web.id
epicfail.web.id name server server1.epicfail.web.id.
server1# dig epicfail.web.id
; <<>> DiG 9.8.1-P1 <<>> epicfail.web.id
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11758
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;epicfail.web.id. IN A
;; ANSWER SECTION:
epicfail.web.id. 3600 IN A 192.211.62.47
;; AUTHORITY SECTION:
epicfail.web.id. 3600 IN NS server1.epicfail.web.id.
;; ADDITIONAL SECTION:
server1.epicfail.web.id. 3600 IN A 192.211.62.47
;; Query time: 0 msec
;; SERVER: 192.211.62.47#53(192.211.62.47)
;; WHEN: Sat Jan 12 03:36:46 2013
;; MSG SIZE rcvd: 87
server1# nslookup epicfail.web.id
Server: 192.211.62.47
Address: 192.211.62.47#53
Name: epicfail.web.id
Address: 192.211.62.47
server1# nslookup 192.211.62.47
Server: 192.211.62.47
Address: 192.211.62.47#53
47.62.211.192.in-addr.arpa name = server1.epicfail.web.id.
47.62.211.192.in-addr.arpa name = mx.epicfail.web.id.
47.62.211.192.in-addr.arpa name = mail.epicfail.web.id.
I think that's all my setting so far. Please kindly tell me where my mistake is and if possible tell me how to correct it.
BTW, how do we see the BIND logfile? I try to use /var/log/messages but I think it's not BIND's logfile.
Thank you for all your attention and sorry for my bad English.