I have configured dns on solaris 10 and it is working fine but i want to add some other domains in this dns like yahoo and gmail. but i have no idea how to do this. I have added zone entry in named.conf and created a seperate zone file under /var/named/db.gmail.com. but when i use nslookup it is giving error.
Server: 192.168.50.152
Address: 192.168.50.152#53
** server can't find gmail.com.gmail.com: SERVFAIL
My dns reasult is given below. I want to make same result with other domains using same dns.
nslookup
> set ty=mx
> mydomain.com
Server: 192.168.50.152
Address: 192.168.50.152#53
Thanks bartus11 for your reply.
contents of zone entry for gmail.com in the forward zone only are given below
zone "gmail.com"
{
type master;
file "db.gmail.com";
};
all contents of /var/named/db.gmail.com are
$TTL 86400
;
;{name} {ttl} Class SOA Origin Postmaster
;----------------------------------------------------------------------------------
@ IN SOA www.gmail.com. root.www.gmail.com. (
2005010101 ; Serial
3600 ; Refresh (1 Hour)
1800 ; Retry (30 Minutes)
6048000 ; Expire (1 Week)
86400 ) ; Minimum (24 Hours)
;
;{name} {ttl} Class NS Nameserver Name
;------------------------------------------------------
IN NS www.gmail.com.
;
;{name} {ttl} Class A IP Address
;-------------------------------------------------
www IN A 192.168.50.153
gmail.com. IN A 192.168.50.153
gmail.com. IN MX 155555 www.gmail.com
localhost IN A 127.0.0.1
one more thing please do i have to change the TTL serial number because it is same in my primary server dns zone file do i have to make any entry for this domain(gmail.com) or zone in my primary dns zone file, if yes then please guide.
Looking forward to hear from you . Thanks in advance.
To keep the forums high quality for all users, please take the time to format your posts correctly.
First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags
```text
and
```
by hand.)
Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.
Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.