Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two DNS zone files can anyone please tell me in which one I have to add an SPF record?

Zone (

$TTL    86400
@               IN SOA  @       root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum

                IN NS           @
                IN A  
                IN AAAA         ::1

Zone (

$TTL    86400
@               IN SOA  localhost root (
                                        42              ; serial (d. adams)
                                        3H              ; refresh
                                        15M             ; retry
                                        1W              ; expiry
                                        1D )            ; minimum
                IN NS           localhost
localhost       IN A  
share|improve this question

The short answer is none of the above. Those are standard zones commonly added to DNS servers so they will resolve the name localhost and localhost.localdomain. These entries are added so the DNS server does not forward requests for localhost to your ISP, or other public DNS servers. The localhost zone is required by RFC1919


4.1 Boot file setup

   Certain zones should always be present in nameserver configurations:

           primary         localhost               localhost
           primary    127.0
           primary        255
           primary          0

If you have no other zones configured, then you are probably looking at the wrong DNS server.

Try running the command dig @ -t ns Replace the with your actual domain name that you are trying to send email from. This will give you the list of name servers authorative for your zone from Google's perspective.

my domain name is

Is that your hostname or domain name? Do you own If you do, then it sure appears like your DNS is being handled by the servers named I am not entirely sure who they are, but I would guess they belong to the DNS regiatrar you got the domain from. There is probably a web interface somewhere that allows you to modify the records within their system.

$ dig @ -t ns

; <<>> DiG 9.7.3 <<>> @ -t ns
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 23606
;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 0, ADDITIONAL: 0

;                      IN      NS

;; ANSWER SECTION:               37904   IN      NS               37904   IN      NS               37904   IN      NS               37904   IN      NS

;; Query time: 22 msec
;; WHEN: Wed Feb 29 00:43:53 2012
;; MSG SIZE  rcvd: 143
share|improve this answer
Thanks for the information i will try this and update you. – achal tomar Feb 29 '12 at 8:26
If you told us your domain name we could do it for you. – Zoredache Feb 29 '12 at 8:31
my domain name is – achal tomar Feb 29 '12 at 8:34
can you please tell me how to do this entry. – achal tomar Feb 29 '12 at 8:45
I updated the answer, but can you clarify. Do you own the domain The name appears to be a host name, not a domain name. – Zoredache Feb 29 '12 at 8:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.