Installing/Configuring BIND9 for
ENUM/DNS on Ubuntu
The information listed below is referenced from the following
link: [Link]
Please note that this is an example configuration and should be used only as a guide.
The numbers listed need to be changed to suit your purposes as also does the ENUM tree
referenced. In this example, the configuration is built based on the golden tree; [Link].
How to install BIND9 as ENUM Server on Ubuntu
Why do you need an ENUM server?
ENUM server works like DNS server but it matches Phone number with SIP URI instead of IP
and URL. Some IMS Core systems use this kind of resolutions.
Installing BIND9
I'm going to explain this for Ubuntu Server, it is quite easy to install but tricky to configure at the
begining.
1) apt-get install bind9
2) After installation succefully completed, go to /etc/bind/ directory. You need to edit
following files only.
[Link]
[Link]
[Link] (actually we will create it in next step)
[Link] (actually we will create it in next step)
3) [Link]
add following line
include "/etc/bind/[Link]";
4) [Link]
add following line
zone "[Link]" {
type master;
file "/etc/bind/[Link]";
};
5) [Link]
$TTL 86400
[Link]. IN SOA [Link]. [Link]. (
2004011522 ; Serial no., based on date
21600 ; Refresh after 6 hours
3600 ; Retry after 1 hour
604800 ; Expire after 7 days
3600 ; Minimum TTL of 1 hour
[Link]. 43200 IN NS [Link].
[Link]. 43200 IN A [Link]
[Link].[Link].[Link]. NAPTR 10 100 "u" "E2U+sip" "!^.*$!sip:info@[Link]!".
[Link].[Link].[Link]. NAPTR 10 101 "u" "E2U+h323"
"!^.*$!h323:info@[Link]!".
[Link].[Link].[Link]. NAPTR 10 102 "u" "E2U+msg"
"!^.*$![Link]
[Link].[Link].[Link]. NAPTR 100 10 "U" "SIP+E2U"
"!^.*$!sip:16133957218@[Link]!".
6) [Link]
#logging {
# channel query-log {
# file "/var/log/query-log" versions 2 size 10m;
# print-time yes;
# print-category yes;
# };
# category queries { query-log; } ;
#};
#options {
# directory "/var/cache/bind";
// If there is a firewall between you and nameservers you want
// to talk to, you might need to uncomment the query-source
// directive below. Previous versions of BIND always asked
// questions using port 53, but BIND 8.1 and later use an unprivileged
// port by default.
// query-source address * port 53;
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
// forwarders {
// [Link];
// };
# auth-nxdomain no; # conform to RFC1035
#};
7) You need to restart bind service
/etc/init.d/bind9 restart
8) Now you can query your request with dig tool
dig @ [Link].[Link].[Link] -t NAPTR
You suppose to get following answer
;; ANSWER SECTION:
[Link].[Link].[Link]. 86400 IN NAPTR 100 10 "U" "SIP+E2U"
"!^.*$!sip:16133957218@[Link]!" .
Credit: Bill Efthimiou, AARnet