Results 1 to 1 of 1
I wanted to improve my linux skills, so I decided to have fedore core 6 act as a router. I also wanted the router to provide dns services (via DNS ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-12-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 4
Bind
I wanted to improve my linux skills, so I decided to have fedore core 6 act as a router. I also wanted the router to provide dns services (via DNS BIND) to my private lan. All i know is that dnsbind doesn't work so I will provide the all the files that could house an error and my current setup.
Current Setup:
netgear router-> 192.168.0.4:fedora core 6: 10.0.0.1->(private lan) 10.0.0.2: windows
Notes:
1. With iptables and ip packet forwarding enabled I am able to ping an outside ip address.
2. I have not opened a hole in the firewall for DNS, but I think I know it is not my problem because BIND doesn't work even with iptables disabled.
3. My private lan consists of a windows computer and I have the dns server set to 10.0.0.1.
Bind output
{CODE]
[root@router etc]# named-checkconf named.conf
[root@router etc]#
[root@router named]# named-checkzone yourdomain.com /var/named/db.yourdomain.com.inside /var/named/db.yourdomain.com.inside:1: no TTL specified; using SOA MINTTL instead zone yourdomain.com/IN: loaded serial 1 OK
[root@router named]# /etc/init.d/named start Starting named: [ OK ]
[root@router named]# host win Host win not found: 3(NXDOMAIN) [root@router named]#
[/CODE]
/etc/hosts:
named.conf:Code:Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.yourdomain.com localhost 192.168.0.4 router.yourdomain.com router 10.0.0.2 win.yourdomain.com win
Code:options { directory "/var/named"; }; acl "mylan" { 127/8; 10.0.0.0/24; }; view "inside" { match-clients { "mylan" ;}; recursion yes; zone "." IN { type hint; file "named.ca"; }; zone "0.0.10.in-addr.arpa" IN { type master; file "yourlan.db"; }; zone "yourdomain.com" { type master; file "db.yourdomain.com.inside"; allow-transfer {10.0.0.2; }; }; }; include "/etc/rndc.key";
vi db.yourdomain.com.inside
yourlan.dbCode:@ IN SOA router.yourdomain.com. root.router.yourdomain.com. ( 1 10800 3600 604800 86400 ) IN NS ns1.yourdomain.com. ns1 IN A 10.0.0.1 win IN A 10.0.0.2
/etc/resolv.conf:Code:$TTL 86400 @ IN SOA 0.0.0.10.in-addr.arpa. root.router.yourdomain.com. ( 2007040501 ; Serial 28800 ; Refresh 14400 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS 0.0.0.10.in-addr-arpa. 1 IN PTR yourdomain.com. 2 IN PTR win.yourdomain.com. ; EOF
I also edited my /etc/resolv.conf with no luck.
/etc/resolv.conf:
Code:; generated by /sbin/dhclient-script search hsd1.mn.comcast.net. nameserver 192.168.0.1 ns1 10.0.0.1
I left out the reverse ip lookup table because I wanted the normal dns lookup to work first.
Thanks in advance!


Reply With Quote
