Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems creating internal zone file, bind[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Fri Dec 06, 2013 1:37 pm    Post subject: problems creating internal zone file, bind[solved] Reply with quote

I'm trying to setup a dns server using bind, I've setup my configuration to point towards /var/bind/pri/example.com.internal:
zone "example.com" {
type master;
file "/var/bind/pri/example.com.internal";
};

then I created that file: /var/bind/pri/example.com.internal
$TTL 2d
@ IN SOA ns.example.com. (
20131206 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d
) ; minimum

# YOUR_DOMAIN. IN MX 0 mail.YOUR_DOMAIN.
# YOUR_DOMAIN. IN TXT "v=spf1 ip4:YOUR_PUBLIC_IP/32 mx ptr mx:mail.YOUR_DOMAIN ~all"
example.com. IN NS ns.example.com.
# YOUR_DOMAIN. IN NS SLAVE_DNS_SERVER
# www.YOUR_DOMAIN. IN A 192.168.1.3
ns.example.com. IN A 192.168.0.1
root.example.com IN A 192.168.0.1
# mail.YOUR_DOMAIN. IN A 192.168.1.3
# router.YOUR_DOMAIN. IN A 192.168.1.1
# hell.YOUR_DOMAIN. IN A 192.168.1.3
# heaven.YOUR_DOMAIN. IN A 192.168.1.5
# desktop.YOUR_DOMAIN. IN A 192.168.1.4
adel.example.com. IN A 192.168.0.2

I keep running into this problem when I start the server though: /var/log/named/named.log
06-Dec-2013 18:32:52.302 general: error: dns_rdata_fromtext: /var/bind/pri/example.com.internal:3: near '3h': not a valid number
06-Dec-2013 18:32:52.302 general: error: zone example.com/IN: loading from master file /var/bind/pri/example.com.internal failed: not a valid number
06-Dec-2013 18:32:52.302 general: error: zone example.com/IN: not loaded due to errors.


thanks


Last edited by Adel Ahmed on Tue Dec 17, 2013 11:20 am; edited 1 time in total
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 289
Location: Hangzhou, China

PostPosted: Mon Dec 09, 2013 6:11 am    Post subject: Reply with quote

maybe you miss the contact :
@ IN SOA ns.example.com. root (
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Tue Dec 17, 2013 11:18 am    Post subject: Reply with quote

WOW, can't believe that was what I did wrong :D
thanks problem solved :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum