solaris dns


 
Thread Tools Search this Thread
Operating Systems Solaris solaris dns
# 1  
Old 08-21-2009
Data solaris dns

Hi all,

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

mydomain.com mail exchanger = 10 mail.mydomain.com.mydomain.com.

Am i doing correct, Can some one provide me assistance, how can i do this.

Thanks in advance. looking forward for good response.

Regards,

Sikander
# 2  
Old 08-22-2009
Post contents of zone entry for gmail.com in named.conf and all contents of /var/named/db.gmail.com
# 3  
Old 08-24-2009
Bug contents of named.conf and /var/named/db.gmail.com

Thanks bartus11 for your reply.Smilie
contents of zone entry for gmail.com in the forward zone only are given below
Code:
zone "gmail.com"
{
type master;
file "db.gmail.com";
};

all contents of /var/named/db.gmail.com are
Code:
$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.

Regards,
Sikander

Last edited by vbe; 08-24-2009 at 05:37 AM.. Reason: TRied to add code tags...
# 4  
Old 08-24-2009
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 [code] and [/code] 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.

Thank You.

The UNIX and Linux Forums
# 5  
Old 08-25-2009
Code:
gmail.com.  IN MX 155555             www.gmail.com

Missing period at the end of this line.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to add new Solaris client IP into Solaris 10 DNS server?

Hi, We just built a new Solaris 10 zone. And would like to add it to our DNS server. Its also Solaris 10. Please let me know how can I get the IP resolved using this DNS server. I added entry into zone config file but not working. I did restarted the DNS services. And also added nameserver name... (5 Replies)
Discussion started by: snchaudhari2
5 Replies

2. Solaris

Solaris 10 - DNS / Issues / Help

Hi all Long time no speak, I hope you are all well. Im looking at a DNS issue here and reckon Igot a AD / DNS server issue elsewhere but need to rule out the configuration of my two server's first. IVe got the nameserver enteries in /etc/resolv.conf and dns in the /etc/nsswitch.conf ... (2 Replies)
Discussion started by: sbk1972
2 Replies

3. Solaris

solaris - BIND / DNS

hi all forgive my ignorance, but when IVe set up DNS Ive put in the various server details in the /etc/resolv.conf and away I go. Suddenly Ive been reading about DNS, and I need to created a /etc/named.conf file. so, my question is this. DNS, what part does the /etc/resolv.conf play in... (3 Replies)
Discussion started by: sbk1972
3 Replies

4. Solaris

DNS Services on Solaris

We need a DNS Server on DNS 10. What the best product can i buy and install ? Help me, pls. Tks all. (1 Reply)
Discussion started by: quan0509
1 Replies

5. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

6. Solaris

DNS on Solaris 9

How do I set the Primary and secondary DNS name server for a Sparc IIi running Solaris 9. I have already put them in the resolv.conf file but they still do not work. (5 Replies)
Discussion started by: Atreus
5 Replies

7. UNIX for Dummies Questions & Answers

DNS on Solaris 9

I installed bind 9 on Solaris 9 (intel) but don't know how to have the named service start on bootup. Is there a script hidden somewhere? (2 Replies)
Discussion started by: kiddaniels
2 Replies

8. IP Networking

Solaris DHCP and DNS

I have managed to setup my Solaris box to receive an IP number from a DHCP server. In addition, I can ping and telnet between my dhcp server and my solaris box using the IP number. However, I can't resolve addresses by name from my solaris box. In my nsswitch.conf file I have: hosts: dns ... (4 Replies)
Discussion started by: marist89
4 Replies

9. UNIX for Dummies Questions & Answers

DNS on Solaris 2.6

I just setup Solaris 2.6 on my Sparc 10 and I cannot figure out how to configure my DNS settings. I am using @home as my ISP and they assigned me two DNS servers to use and a domain. I created a "resolv.conf" file in my etc folder and added the following exactly as shown: domain... (4 Replies)
Discussion started by: jskillet
4 Replies

10. UNIX for Dummies Questions & Answers

Solaris 5.8 DNS

Allright, Thanks to http://docs.sun.com I've got the tcp/ip portion of my box working now. I can see anything I want, as long as it's got a numerical address. Does anyone know how to add just a DNS entry? like reference my dns server, and configure my host name? (1 Reply)
Discussion started by: veitcha
1 Replies
Login or Register to Ask a Question