[postfix-users] Postfix mit DBMail und NUR virtual Maps / resolv.conf aendern

Robert Schetterer rs at sys4.de
Di Okt 23 09:20:44 CEST 2012


Am 22.10.2012 21:46, schrieb Wandersmann:
> Am 22.10.12 schrieb Ralf Hildebrandt <r at sys4.de>:
>> Und auch nachsehen was in /etc/resolve.conf steht
> 
>>> was sagt
>>>
>>> dig localhost
>>>
>>> und sehe mal in der /etc/hosts nach
>>>
>>> das sollte mind drinnstehen
>>>
>>> 127.0.0.1       localhost
>>>
> 
> vps47373:~ # cat /etc/resolv.conf
> nameserver 8.8.8.8
> nameserver 8.8.4.4
> nameserver 84.201.0.34
> nameserver 194.187.164.20
> vps47373:~ # dig localhost
> 
> ; <<>> DiG 9.7.6-P3 <<>> localhost
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1274
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
> 
> ;; QUESTION SECTION:
> ;localhost.                     IN      A
> 
> ;; AUTHORITY SECTION:
> .                       1499    IN      SOA     a.root-servers.net.
> nstld.verisign-grs.com. 2012102201 1800 900 604800 86400
> 
> ;; Query time: 3 msec
> ;; SERVER: 8.8.8.8#53(8.8.8.8)
> ;; WHEN: Mon Oct 22 21:43:29 2012
> ;; MSG SIZE  rcvd: 102
> 
> vps47373:~ # nslookup localhost
> Server:         8.8.8.8
> Address:        8.8.8.8#53
> 
> ** server can't find localhost: NXDOMAIN
> 
> vps47373:~ # cat /etc/hosts
> #
> # hosts         This file describes a number of hostname-to-address
> #               mappings for the TCP/IP subsystem.  It is mostly
> #               used at boot time, when no name servers are running.
> #               On small systems, this file can be used instead of a
> #               "named" name server.
> # Syntax:
> #
> # IP-Address  Full-Qualified-Hostname  Short-Hostname
> #
> 
> 
> # special IPv6 addresses
> 
> fe00::0         ipv6-localnet
> 
> ff00::0         ipv6-mcastprefix
> ff02::1         ipv6-allnodes
> ff02::2         ipv6-allrouters
> ff02::3         ipv6-allhosts
> 
> 127.0.0.1 localhost.localdomain localhost
> # Auto-generated hostname. Please do not remove this comment.
> 84.200.20.137 vps47373.port-sadtec.de  vps47373
> ::1             localhost ipv6-localhost ipv6-loopback
> 

dig localhost

( bitte nslookup fuer immer vergessen )

muesste

das hier auswerfen

dig localhost

; <<>> DiG 9.8.1-P1 <<>> localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38216
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;localhost.                     IN      A

;; ANSWER SECTION:
localhost.              604800  IN      A       127.0.0.1

wie ist deine search order in

/etc/nsswitch.conf

die muesste ca so aussehen
..
hosts: files dns mdns4
..

ich vermute es liegt an google

schmeiss mal testweise

aus /etc/resolv.conf

> nameserver 8.8.8.8
> nameserver 8.8.4.4
> nameserver 84.201.0.34

raus

und nimm nur 194.187.164.20

dig localhost

; <<>> DiG 9.8.1-P1 <<>> localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46276
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1

;; QUESTION SECTION:
;localhost.                     IN      A

;; ANSWER SECTION:
localhost.              604800  IN      A       127.0.0.1

;; AUTHORITY SECTION:
localhost.              604800  IN      NS      localhost.

;; ADDITIONAL SECTION:
localhost.              604800  IN      AAAA    ::1

;; Query time: 37 msec
;; SERVER: 194.187.164.20#53(194.187.164.20)
;; WHEN: Tue Oct 23 09:19:13 2012
;; MSG SIZE  rcvd: 85

google

dig localhost

; <<>> DiG 9.8.1-P1 <<>> localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 38113
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;localhost.                     IN      A

;; AUTHORITY SECTION:
.                       430     IN      SOA     a.root-servers.net.
nstld.verisign-grs.com. 2012102300 1800 900 604800 86400

;; Query time: 38 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Tue Oct 23 09:19:37 2012
;; MSG SIZE  rcvd: 102

-- 
Best Regards
MfG Robert Schetterer

[*] sys4 AG

http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München

Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich


Mehr Informationen über die Mailingliste postfix-users