Hi all,

Following are the outputs from /etc/bind/named.conf.local and /etc/bind/
db.facebook.com:

<.....................................................terminal
output.....................................................>
$ cat /etc/bind/named.conf.local

zone "facebook.com" {
    type master;
    file "/etc/bind/db.facebook.com";
};

zone "1.168.192.in-addr.arpa" {
    type master;
    notify no;
    file "/etc/bind/db.192";
};

$ cat /etc/bind/db.facebook.com
;
; BIND data file for local loopback interface
;
$TTL    604800
@    IN    SOA    localhost. root.localhost. (
                  3        ; Serial
             604800        ; Refresh
              86400        ; Retry
            2419200        ; Expire
             604800 )    ; Negative Cache TTL
;
    IN    NS    localhost.
    IN    A    192.168.1.5
@    IN    AAAA    2002:c0a8:0105::

box    IN    A    192.168.1.5
<.....................................................terminal
output.....................................................>

I want facebook.com or *.facebook.com to be redirected to 192.168.1.5.
Following is the output of dig, host and ping to facebook.com:

<.....................................................terminal
output.....................................................>
$ dig facebook.com

; <<>> DiG 9.7.0-P1 <<>> facebook.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15603
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;facebook.com.            IN    A

;; ANSWER SECTION:
facebook.com.        604800    IN    A    192.168.1.5

;; AUTHORITY SECTION:
facebook.com.        604800    IN    NS    localhost.

;; ADDITIONAL SECTION:
localhost.        604800    IN    A    127.0.0.1
localhost.        604800    IN    AAAA    ::1

;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jan 12 18:49:25 2012
;; MSG SIZE  rcvd: 113

$ host facebook.com
facebook.com has address 192.168.1.5
facebook.com has IPv6 address 2002:c0a8:105::
sysadmin@ground:~$ ping facebook.com
PING facebook.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.010 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.013 ms
^C
--- facebook.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.010/0.011/0.013/0.003 ms

<.....................................................terminal
output.....................................................>

I'm certain I'm doing something wrong, but not sure what.
Can someone help?

Thanks,
Sagar Belure

-- 
You received this message because you are subscribed to the Google Groups "ILUG 
Bengaluru" group.
To post to this group, send email to ilug-bengaluru@googlegroups.com.
To unsubscribe from this group, send email to 
ilug-bengaluru+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/ilug-bengaluru?hl=en.

Reply via email to