Postfix gethostbyname:Success probléma megoldása

Ma végre sikerült a domainemet a „birtokomba” venni, azaz végre minden a gépemre mutat ahogy kell. A levelezés teljesen össze volt rakva, csak 1 kis gigszer szólt közbe, amit végül is sikerült megoldani, de sokat szenvedtem vele… Minden esetre a beszélgetést és a feljegyzéseimet, konzultációmat lejegyeztem, még jól jöhet:

Hello!

Postfixel raktam ossze 1 kis mailservert. Nem reszletezem teljesen hogy mibol all csak a lenyeget. Szoval debianon postfix 2.1.5-9 verzio van fent. Mysqlbol nezi az infokat a mailserver. Na most az egesz szepen mukodik. Levelet kuldeni azt tudok altala. Viszont kapaskor vannak gondok. Szepen leellenorzodik minden…. majd amikor a virtual kezd a levellel valamit, szerintem ez akarna betenni a megfelelo virtual mailbox strukturaba a levelet. Akkor meghal. de mutatom logban:

Idézet:

Jun 18 11:39:34 matrix postfix/smtpd[14396]: starting TLS engine
Jun 18 11:39:34 matrix postfix/smtpd[14396]: connect from fmx2.freemail.hu[195.228.242.222]
Jun 18 11:39:35 matrix postfix/smtpd[14396]: 1CDE56F7: client=fmx2.freemail.hu[195.228.242.222]
Jun 18 11:39:35 matrix postfix/cleanup[27476]: 1CDE56F7: message-id=
Jun 18 11:39:35 matrix postfix/qmgr[18442]: 1CDE56F7: from=, size=893, nrcpt=1 (queue active)
Jun 18 11:39:35 matrix postfix/smtpd[14396]: disconnect from fmx2.freemail.hu[195.228.242.222]
Jun 18 11:39:35 matrix amavis[11060]: (11060-05) ESMTP::10024 /var/lib/amavis/amavis-20050618T105127-11060:
-> Received: S
IZE=893 from server.xorp.hu ([127.0.0.1]) by localhost (xorp.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11060-05 for
; Sat, 18 Jun 20
05 11:39:35 +0200 (CEST)
Jun 18 11:39:35 matrix amavis[11060]: (11060-05) Checking:
->
Jun 18 11:39:55 matrix amavis[11060]: (11060-05) spam_scan: hits=0.032 tests=AWL,FORGED_RCVD_HELO
Jun 18 11:39:55 matrix amavis[11060]: (11060-05) FWD via SMTP: [127.0.0.1]:10025
->
Jun 18 11:39:56 matrix postfix/smtpd[25428]: starting TLS engine
Jun 18 11:39:56 matrix postfix/smtpd[25428]: connect from localhost[127.0.0.1]
Jun 18 11:39:56 matrix postfix/smtpd[25428]: 4D8056FF: client=localhost[127.0.0.1]
Jun 18 11:39:56 matrix postfix/cleanup[27476]: 4D8056FF: message-id=
Jun 18 11:39:56 matrix postfix/qmgr[18442]: 4D8056FF: from=, size=1325, nrcpt=1 (queue active)
Jun 18 11:39:56 matrix postfix/smtpd[25428]: disconnect from localhost[127.0.0.1]
Jun 18 11:39:56 matrix amavis[11060]: (11060-05) Passed,
-> , Message-ID: ,
Hits: 0.032
Jun 18 11:39:56 matrix amavis[11060]: (11060-05) TIMING [total 20774 ms] – SMTP EHLO: 36 (0%), SMTP pre-MAIL: 3 (0%), SMTP pre-DATA-flush: 74 (0%), SMTP DATA: 12 (0
%), body hash: 70 (0%), mime_decode: 240 (1%), get-file-type: 83 (0%), decompose_part: 139 (1%), parts: 0 (0%), AV-scan-1: 59 (0%), SA msg read: 55 (0%), SA parse:
175 (1%), SA check: 19299 (93%), fwd-connect: 298 (1%), fwd-mail-from: 42 (0%), fwd-rcpt-to: 36 (0%), write-header: 37 (0%), fwd-data: 11 (0%), fwd-data-end: 46 (0%
), fwd-rundown: 26 (0%), unlink-1-files: 30 (0%), rundown: 2 (0%)
Jun 18 11:39:56 matrix postfix/smtp[8667]: 1CDE56F7: to=, relay=localhost[127.0.0.1], delay=22, status=sent (250 2.6.0 Ok, id=11060-05, from MTA:
250 Ok: queued as 4D8056FF)
Jun 18 11:39:56 matrix postfix/qmgr[18442]: 1CDE56F7: removed
Jun 18 11:39:56 matrix postfix/virtual[11590]: fatal: gethostbyname: Success
Jun 18 11:39:57 matrix postfix/qmgr[18442]: warning: premature end-of-input on private/virtual socket while reading input attribute name
Jun 18 11:39:57 matrix postfix/qmgr[18442]: warning: private/virtual socket: malformed response
Jun 18 11:39:57 matrix postfix/qmgr[18442]: warning: transport virtual failure — see a previous warning/fatal/panic logfile record for the problem description
Jun 18 11:39:57 matrix postfix/master[25482]: warning: process /usr/lib/postfix/virtual pid 11590 exit status 1
Jun 18 11:39:57 matrix postfix/master[25482]: warning: /usr/lib/postfix/virtual: bad command startup — throttling

Tehat ez tortenik. Gondoltam arra hogy a postfix chrootban fut, es megprobaltam a /var/spool/postfix/etc ben levo host fileba beleirni a postfix confjaban is levo hostokat es domaineket localhostra hogy hatha a nev feloldasaval vannak gondjai, de sajna igy se valtozott semmi. Remelem mas is talalkozott mar ezzel a problemaval es tudna nekem segiteni, koszonom elorre is.
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése
Ago
Újonc
Újonc

Csatlakozott: Jun 08, 2004
Hozzászólások: 44

HozzászólásElküldve: Szomb Jún 18, 2005 9:29 pm Hozzászólás témája: Hozzászólás az előzmény idézésével
A postfixnek van egy post-install scriptje. Abban van set-permissions, upgrade-permissions stb. paraméter. Próbáld meg ezzel. Akkor szokott ez előfordulni, ha frissítés volt, esetelg kézzel törölve lett (sic!) pár könyvtár és úgy is let létrehozva. Vagy nem tiszta upgrade-nél. Futtasd le ezt a parancsot, aztán vagy megtörénik és lesz „kapás” – nem fogadás inkább? – vagy nem és lehettovább nézni. Jótanács: tedd külön logba az amavist, mert felesleges, hogy itt vágja teli a logokat. Utána, ha nem menne még mindig a fogadás, akkor a master.cf-ben az smtpd és cleaunup részhezhez tegyél egy -v kapcsolót. Sokat fog naplózni! De abból még több kiderülhet.
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése
miszterx
Újonc
Újonc

Csatlakozott: Jun 18, 2005
Hozzászólások: 7

HozzászólásElküldve: Szomb Jún 18, 2005 10:36 pm Hozzászólás témája: Hozzászólás az előzmény idézésével Hozzászólás szerkesztése/törlése
Koszi, hogy probalsz segiteni. Hehe valoban igazad van, a „kapas” fogadas lenne… csak mar fogalmazni se birok Wink eleg idegesen irtam ezt a bejegyzest, es nem minden szo jutott ugy az eszembe ahogy jolett volna. Megfogadtam a tanacsod, lefuttattam, helyrerakattam (ha nem lett volna) rendbe a jogosultsagokat is. Majd betettem -v kapcsolokat is… de a smtpd meg cleanupnal nem volt semmi erdekes, mert azokon tulmegy… de tettem a virtualhoz is egy -v kapcsolot, hogy hatha kiderul mi meg hogy a gond pontosabban…
Idézet:

Jun 18 14:35:38 matrix postfix/virtual[16921]: local_deliver: 7A10A70C from miszterx@freemail.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: local_deliver[0]: reset user_attr
Jun 18 14:35:38 matrix postfix/virtual[16921]: deliver_recipient[1]: recip miszterx@xorp.hu deliver
Jun 18 14:35:38 matrix postfix/virtual[16921]: level: 0
Jun 18 14:35:38 matrix postfix/virtual[16921]: path: active/7/7A10A70C
Jun 18 14:35:38 matrix postfix/virtual[16921]: fp: 0x805d918
Jun 18 14:35:38 matrix postfix/virtual[16921]: queue_name: active
Jun 18 14:35:38 matrix postfix/virtual[16921]: queue_id: 7A10A70C
Jun 18 14:35:38 matrix postfix/virtual[16921]: offset: 265
Jun 18 14:35:38 matrix postfix/virtual[16921]: sender: miszterx@freemail.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: recipient: miszterx@xorp.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: user: miszterx@xorp.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: delivered: miszterx@xorp.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: relay: virtual
Jun 18 14:35:38 matrix postfix/virtual[16921]: deliver_mailbox[2]: recip miszterx@xorp.hu deliver miszterx@xorp.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql_lookup using sql query: select maildir from mailbox where username = ‘miszterx@xorp.hu’
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql_get_active: attempting to connect to host 127.0.0.1
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql: successful connection to host 127.0.0.1
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql: successful query from host 127.0.0.1
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql_lookup: retrieved 1 rows
Jun 18 14:35:38 matrix postfix/virtual[16921]: maps_find: virtual_mailbox_maps: mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf(0,100): miszterx@xorp.hu = xorp.hu/mi
Jun 18 14:35:38 matrix postfix/virtual[16921]: mail_addr_find: miszterx@xorp.hu -> xorp.hu/miszterx@xorp.hu/
Jun 18 14:35:38 matrix postfix/virtual[16921]: maps_find: virtual_uid_maps: static:101(0,100): miszterx@xorp.hu = 101
Jun 18 14:35:38 matrix postfix/virtual[16921]: mail_addr_find: miszterx@xorp.hu -> 101
Jun 18 14:35:38 matrix postfix/virtual[16921]: maps_find: virtual_uid_maps: static:101(0,100): miszterx@xorp.hu = 101
Jun 18 14:35:38 matrix postfix/virtual[16921]: mail_addr_find: miszterx@xorp.hu -> 101
Jun 18 14:35:38 matrix postfix/virtual[16921]: maps_find: virtual_gid_maps: static:103(0,100): miszterx@xorp.hu = 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: mail_addr_find: miszterx@xorp.hu -> 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: maps_find: virtual_gid_maps: static:103(0,100): miszterx@xorp.hu = 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: mail_addr_find: miszterx@xorp.hu -> 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: deliver_mailbox[2]: set user_attr: /var/mail/virtual/xorp.hu/miszterx@xorp.hu/, uid = 101, gid = 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: deliver_maildir[3]: recip miszterx@xorp.hu deliver miszterx@xorp.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql_lookup using sql query: select quota from mailbox where username = ‘miszterx@xorp.hu’
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql_get_active: attempting to connect to host 127.0.0.1
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql: successful connection to host 127.0.0.1
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql: successful query from host 127.0.0.1
Jun 18 14:35:38 matrix postfix/virtual[16921]: dict_mysql_lookup: retrieved 1 rows
Jun 18 14:35:38 matrix postfix/virtual[16921]: maps_find: virtual_mailbox_limit_maps: mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf(0,100): miszterx@xorp.hu
Jun 18 14:35:38 matrix postfix/virtual[16921]: mail_addr_find: miszterx@xorp.hu -> 1048576000
Jun 18 14:35:38 matrix postfix/virtual[16921]: set_eugid: euid 101 egid 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: check_dir_size: dir=/var/mail/virtual/xorp.hu/miszterx@xorp.hu/new/ sum=0 count=0
Jun 18 14:35:38 matrix postfix/virtual[16921]: check_dir_size: dir=/var/mail/virtual/xorp.hu/miszterx@xorp.hu/cur/ sum=29991908 count=226
Jun 18 14:35:38 matrix postfix/virtual[16921]: check_dir_size: dir=/var/mail/virtual/xorp.hu/miszterx@xorp.hu/tmp/ sum=0 count=0
Jun 18 14:35:38 matrix postfix/virtual[16921]: set_eugid: euid 101 egid 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: set_eugid: euid 101 egid 103
Jun 18 14:35:38 matrix postfix/virtual[16921]: fatal: gethostbyname: Success
Jun 18 14:35:39 matrix postfix/qmgr[25599]: warning: premature end-of-input on private/virtual socket while reading input attribute name
Jun 18 14:35:39 matrix postfix/qmgr[25599]: warning: private/virtual socket: malformed response
Jun 18 14:35:39 matrix postfix/qmgr[25599]: warning: transport virtual failure — see a previous warning/fatal/panic logfile record for the problem description
Jun 18 14:35:39 matrix postfix/master[17069]: warning: process /usr/lib/postfix/virtual pid 16921 exit status 1
Jun 18 14:35:39 matrix postfix/master[17069]: warning: /usr/lib/postfix/virtual: bad command startup — throttling

remelem latszik hogy tudja hova kellene raknia meg minden… meg a konyvtart is felmeri marmint a /var/mail/virtual/xorp.hu/miszterx@xorp.hu/ -t bla bla… es utana itt is csak 1 sor:
Jun 18 14:35:38 matrix postfix/virtual[16921]: fatal: gethostbyname: Success
laccik hogy ugyan az alatt a pid alatt fut: 16921 ergo itt ***** be az egesz, de hogy miert vagy hogy vagy mi a gondja igy -v vel se mondja… Fogalmam sincs… mi lehet a gond mit probalhatnek meg? mutassak confot is? az segitene? nemhiszem hogy abban is ellene vmi „b*szva”… de barmilyen ottletet szivesen fogadok.
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése
Ago
Újonc
Újonc

Csatlakozott: Jun 08, 2004
Hozzászólások: 44

HozzászólásElküldve: Szomb Jún 18, 2005 11:17 pm Hozzászólás témája: Hozzászólás az előzmény idézésével
postconf -n kimenetét add csak. Elérési utak rendben? A hibaüzenet nem erre utal, de ki tudja. Esetleg egy upgrade nincs-e elrontva valami? Text alapú virtual demonnal probáltad? Jól tetted, hogy továbbmentél, üzenet alapján látni kellett volna, hogy levél kiírásánál vannak a gondok.
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése
miszterx
Újonc
Újonc

Csatlakozott: Jun 18, 2005
Hozzászólások: 7

HozzászólásElküldve: Szomb Jún 18, 2005 11:30 pm Hozzászólás témája: Hozzászólás az előzmény idézésével Hozzászólás szerkesztése/törlése
itt a postconf -n:
Idézet:

[ postconf -n
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[localhost]:10024
daemon_directory = /usr/lib/postfix
local_transport = virtual
max_use = 10
mydestination = $myhostname localhost matrix
mydomain = xorp.hu
myhostname = server.$mydomain
mynetworks = 127.0.0.0/8
myorigin = $mydomain
queue_directory = /var/spool/postfix
relay_domains = $mynetworks $myhostname
smtpd_banner = $myhostname ESMTP ready
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_rbl_client opm.blitzed.org, reject_rbl_client list.dsbl.org, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/newcert.pem
smtpd_tls_key_file = /etc/postfix/ssl/newreq.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_create_maildirsize = yes
virtual_gid_maps = static:103
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 512000000
virtual_mailbox_limit_inbox = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_maildir_limit_message = Sorry, the user’s maildir has overdrawn his diskspace quota, please try again later.
virtual_minimum_uid = 100
virtual_overquota_bounce = yes
virtual_transport = virtual
virtual_uid_maps = static:101

minden file konyvtar elerese helyes…. tudtommal! legalabbis semmi error nem utal ra hogy nem de atneztem 1000szer. /var/mail/virtual ba vannak a dolgok…
101 udije a postfixnek 103 a groupja tud irni olvasni is a konyvtar szerkezetbe. Es olyan szempontbol a mysqlben levo adatok is helyesek, mert courier-imapal a mar ott levo leveleket meg tudom nezni… le tudom szedni.
„Esetleg egy upgrade nincs-e elrontva valami?” < --- ezt sajna nemertem mire gondolsz. Text alapu virtual deamonnal, ugy erted hogy filebol olvassa ki hogy mi hol van? mert akkor nem... egyol mysqlel probalom. Sajna meg mindig nincs ottletem se Smile Vissza az elejére Felhasználó profiljának megtekintése Privát üzenet küldése Ago Újonc Újonc Csatlakozott: Jun 08, 2004 Hozzászólások: 44 HozzászólásElküldve: Vas Jún 19, 2005 12:11 am Hozzászólás témája: Hozzászólás az előzmény idézésével Igen, próbáld meg statikus text filenál is fennáll-e a probléma. Nem hinném, hogy itt lenne a gond, de ki tudja. Neekm volt ilyen hibám, de akkor ez csak és kizárólag akkor jelentkezett, ha upgrade előtt nem állítottam le a postfix-et és eléggé összekuszálódtak dolgok. A post-install upgrade-permissions megoldotta a problémát, meg le is kellett állítani a postfixet. Arra goindoltam upgrade-nél, hogy lehet, hogy van újabb csomag, mert esetleg a csomagolás során lett valami elrintva, ami rosszul állít be tulajdonságokat. Vissza az elejére Felhasználó profiljának megtekintése Privát üzenet küldése miszterx Újonc Újonc Csatlakozott: Jun 18, 2005 Hozzászólások: 7 HozzászólásElküldve: Vas Jún 19, 2005 1:09 am Hozzászólás témája: Hozzászólás az előzmény idézésével Hozzászólás szerkesztése/törlése megprobaltam ugy is... Sad semmi... viszont kiprobaltam, hogy valoban a "packagekkel" van e gond... mivel most egy speci vda-s deb verziot hasznalok a sourcelistet atirva felraktam az eredetit... patch nelkulit aptvel es ugyan azt csinalta Sad szoval valami vagy confban van gond vagy nemtudom... lefutattam a permission dolgot is... de lovesem sincs mi lehet a gond ami ez a gethostbyname success reszehez er es az fatal... szoval erre probalnek rajonni de googlebe se talalok semmit rolla... Vissza az elejére Felhasználó profiljának megtekintése Privát üzenet küldése miszterx Újonc Újonc Csatlakozott: Jun 18, 2005 Hozzászólások: 7 HozzászólásElküldve: Vas Jún 19, 2005 1:28 am Hozzászólás témája: Hozzászólás az előzmény idézésével Hozzászólás szerkesztése/törlése figy talaltam 1 ilyet: 2) You have a name service problem. Postfix calls the C library routines gethostbyname() and gethostbyaddr() in order to find out the SMTP client hostname. These library routines use several system configuration files in order to satisfy the request. They may in fact end up calling the DNS for reasons that are not under control by Postfix. Depending on your system, these controlling files can be named /etc/nsswitch.conf, /etc/svcorder, /etc/host.conf or otherwise. Those files specify whether the C library routines will use local /etc/hosts before or after DNS. szoval a postfix kulso rendszerhivast csinal es az a gethostbyname namost mar csak arra kene rajonnom ezzel mi a gondja.... Vissza az elejére Felhasználó profiljának megtekintése Privát üzenet küldése miszterx Újonc Újonc Csatlakozott: Jun 18, 2005 Hozzászólások: 7 HozzászólásElküldve: Vas Jún 19, 2005 1:38 am Hozzászólás témája: Hozzászólás az előzmény idézésével Hozzászólás szerkesztése/törlése ujabb eszrevetel: ezt talaltam a postconf manjaban: Idézet: disable_dns_lookups (default: no) Disable DNS lookups in the Postfix SMTP and LMTP clients. When disabled, hosts are looked up with the gethostbyname() system library routine which normally also looks in /etc/hosts. DNS lookups are enabled by default. ezt beraktam a main.cf be... de sajna ugy is ugyan ugy ott halalozik el ahol eddig... pedig ez azt irja csak akkor hasznalja a gethostbyname fuggvenyt ha a dns lookups ki van kapcsolva.... szoval sajna tovabbra is szivok Vissza az elejére Felhasználó profiljának megtekintése Privát üzenet küldése miszterx Újonc Újonc Csatlakozott: Jun 18, 2005 Hozzászólások: 7 HozzászólásElküldve: Vas Jún 19, 2005 1:55 am Hozzászólás témája: Hozzászólás az előzmény idézésével Hozzászólás szerkesztése/törlése Idézet: 10:37 < littleady> anybody know what this error is postfix: fatal: gethostbyname: Success
10:39 < inkblot> littleady, what’s the output of ‘hostname’
10:39 < littleady> digitalmaniacs.net
10:40 < inkblot> no good
10:40 < littleady> what does it need to be
10:40 < inkblot> is the output of ‘hostname -f’?
10:40 < inkblot> ^what
10:40 < littleady> hostname: Unknown host
10:41 < inkblot> well, your system should have an unqualified name
10:41 < inkblot> and its domain should be digitalmaniacs.net
10:41 < littleady> what do i need to do?
10:41 < inkblot> so let’s say you set the hostname to ‘goofball’
10:41 < littleady> yep
10:41 < inkblot> hostname should output ‘goofball’
10:42 < inkblot> and hostname -f should output ‘goofball.digitalmaniacs.net’
10:42 < littleady> right
10:42 < inkblot> and postfix is confused because your hostname isn’t set correctly
10:42 < inkblot> fix your hostname and you’ll fix postfix
10:42 < inkblot> is there a file called /etc/hostname?
10:42 < littleady> yes
10:42 < inkblot> (might be /etc/HOSTNAME)
10:42 < inkblot> ok
10:42 < inkblot> put the hostname in that
10:43 < inkblot> unqualified
10:43 < inkblot> example:
10:43 < inkblot> [inkblot@goose:~]$ cat /etc/hostname
10:43 < inkblot> goose
10:44 < littleady> ok i have set it to metroid
10:44 < inkblot> ok
10:44 < inkblot> now, when your system boots, it run ‘
10:44 < inkblot> runs ‘hostname -F /etc/hostname’ to set the hostname
10:44 < inkblot> run that now
10:45 < inkblot> and then run ‘hostname’
10:45 < inkblot> it should say ‘metroid’
10:45 < littleady> yes it does
10:45 < inkblot> ok
10:45 < inkblot> what does ‘hostname -f’ say now?
10:46 < littleady> hostname: Unknown host
10:46 < inkblot> ok
10:46 < inkblot> add this to /etc/hosts:
10:46 < inkblot> 64.62.231.34 metroid.digitalmaniacs.net metroid
10:47 < inkblot> (that’s metroid’s ip, right?)
10:47 < littleady> yep
10:47 < littleady> metroid.digitalmaniacs.net is set now thanks
10:47 < inkblot> ok, what does ‘hostname -f’ say now?
10:48 < littleady> yep thats great i will try postfix now
10:48 < inkblot> ok
10:48 < inkblot> [inkblot@goose:~]$ host metroid.digitalmaniacs.net
10:48 < inkblot> metroid.digitalmaniacs.net does not exist (Authoritative answer)
10:49 < inkblot> ^– also, you should add that name to dns
10:49 < inkblot> [inkblot@goose:~]$ host digitalmaniacs.net
10:49 < inkblot> digitalmaniacs.net CNAME www.digitalmaniacs.net
10:49 < inkblot> www.digitalmaniacs.net A 64.62.231.34
10:49 < inkblot> ^– and these are backwards
10:49 < inkblot> @ should be an A record and www should be the CNAME
10:49 < littleady> right postfix works now great, how do i fix all this up in bind for my dns
10:50 < littleady> do you mean in /etc/dnsdomainname
10:50 < inkblot> no, i mean in dns
10:51 -!- Newsome [~sorenson@obelix.cs.byu.edu] has joined #linode
10:51 < littleady> in bind
10:51 < inkblot> what’s ns4.nameresolve.com?
10:51 < littleady> its is wrong i changed that
10:52 < littleady> waiting for it to go through system
10:52 < inkblot> actualy ns1, ns2, ns3, and ns4.nameresolve.com
10:52 < inkblot> i see
10:52 < inkblot> so, what are the new nameservers for your domain?
10:52 < littleady> ns1 and ns2
10:53 < inkblot> please be more specific
10:53 < littleady> ns1.digitalmaniacs.net and ns2.digitalmaniacs.net
10:53 < inkblot> [inkblot@goose:~]$ host ns1
10:53 < inkblot> ns1 does not exist, try again
10:53 < inkblot> ok
10:53 < inkblot> which one of those is metroid?
10:53 < littleady> yes I have just got bind working
10:54 < littleady> ahhhh i see
10:54 < littleady> i need to setup as metroid.digitalmaniacs.net is this correct
10:55 < inkblot> using the name ns1.digitalmaniacs for the nameserver is fine
10:55 < inkblot> but yes, the name metroid.digitalmaniacs.net should exist
10:56 < littleady> can i send you a txt file with my config for bind to take a look at?

Itt volt a hiba! legalabbis nallam! a beszelgetesbol kiderul, hogy a hostnameval kell vahinalni. Amig a „hostname -f” parancs nem adja vissza a kivant hostot addig a gethostbyname fuggveny se fog mukodni… a beszelgetesben bennevan mit kell csinalni. Nekem mar megy! Masnak sok sikert, es Ago! Nagyon szepen koszonom hogy probaltal segiteni!

Vélemény, hozzászólás?

Az e-mail címet nem tesszük közzé. A kötelező mezőket * karakterrel jelöltük