Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Zone (localhost.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 (localdomain.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

1 Answer 1

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         0.0.127.in-addr.arpa    127.0
           primary         255.in-addr.arpa        255
           primary         0.in-addr.arpa          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 example.org. Replace the example.org 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 vns6.wtech.in

Is that your hostname or domain name? Do you own wtech.in? If you do, then it sure appears like your DNS is being handled by the servers named orderbox-dns.com.? 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 wtech.in

; <<>> DiG 9.7.3 <<>> @ -t ns wtech.in
; (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

;wtech.in.                      IN      NS

wtech.in.               37904   IN      NS      enow.earth.orderbox-dns.com.
wtech.in.               37904   IN      NS      enow.mars.orderbox-dns.com.
wtech.in.               37904   IN      NS      enow.mercury.orderbox-dns.com.
wtech.in.               37904   IN      NS      enow.venus.orderbox-dns.com.

;; 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 vns6.wtech.in –  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 wtech.in? The name vns6.wtech.in 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.