Error report asterisk -r

Here’s what I get when I run "asterisk -r"
Does anyone know that error is?

[2015-10-20 18:02:20] ERROR[1571][C-00000278]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“host250-195-58-185.serverdedicati.aruba.it”, “(null)”, …): Name or service not known
[2015-10-20 18:02:20] WARNING[1571][C-00000278]: acl.c:800 resolve_first: Unable to lookup ‘host250-195-58-185.serverdedicati.aruba.it
[2015-10-20 18:02:20] ERROR[1729]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“host250-195-58-185.serverdedicati.aruba.it”, “(null)”, …): Name or service not known
[2015-10-20 18:02:20] WARNING[1729]: acl.c:800 resolve_first: Unable to lookup ‘host250-195-58-185.serverdedicati.aruba.it
[2015-10-20 18:02:20] ERROR[1729]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“host250-195-58-185.serverdedicati.aruba.it”, “(null)”, …): Name or service not known
[2015-10-20 18:02:20] WARNING[1729]: acl.c:800 resolve_first: Unable to lookup ‘host250-195-58-185.serverdedicati.aruba.it
[2015-10-20 18:02:21] ERROR[1570][C-00000278]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“host250-195-58-185.serverdedicati.aruba.it”, “(null)”, …): Name or service not known
[2015-10-20 18:02:21] WARNING[1570][C-00000278]: acl.c:800 resolve_first: Unable to lookup ‘host250-195-58-185.serverdedicati.aruba.it

Hi!

That hostname doesn’t resolve…

(Try pinging it and you will see it does not resolve to an IP…)

You most likely provided it somewhere in your configuration…

Good luck and have a nice day!

Nick

1 Like

it in fact, and it is ip of my server that the error I do not understand why not resolve himself …

Hi!

Either make it resolvable by DNS (if it is you are not using that DNS on that server) and/or add it to the hosts file…

Have a nice day!

Nick

1 Like

Yes /etc/hosts

I will do so but it turns me weird anyway

What I find weird is that this name looks like the usually automatically generated reverse DNS entries Internet Service Providers use…

I guess your PBX must be externally hosted…

What I don’t get is, if it’s an externally hosted server, why there does not seem to be a name that resolves to that server (for you to remote your server…).

(I mean something besides localhost (ie 127.0.0.1)…)

Good luck and have a nice day!

Nick

1 Like

The problem is that the server is probably 185.58.195.250, but the domain is hosed at the reverse dns level,

nmap -vv -sU -p 5060 185.58.195.250

use “host=185.58.195.250” in your trunk definition.

traceroute 185.58.195.250
whois 185.58.195.250
and the TLD
whois aruba.it
and then
whois serverdedicati.aruba.it

Hi!

Reverse DNS is actually ok, see

; <<>> DiG <<>> 250.195.58.185.in-addr.arpa. ANY
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37755
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4000
;; QUESTION SECTION:
;250.195.58.185.in-addr.arpa. IN ANY

;; ANSWER SECTION:
250.195.58.185.in-addr.arpa. 21424 IN PTR host250-195-58-185.serverdedicati.aruba.it.

;; Query time: 348 msec
;; SERVER: 167.74.82.25#53(167.74.82.25)
;; WHEN: Wed Oct 21 15:24:45 Est 2015
;; MSG SIZE rcvd: 112

See “answer section”…

(The way to query a reverse DNS entry is somewhat weird (written backwards and all that) but trust me it’s the right syntax, I was DNS admin for quite a few years…)

They most likely automatically generated those PTR entries (I know you can do that with ISC Bind (named)) but didn’t bother to create A records for the forward zone…

That machine would $u(k at sending emails because many servers expect a mail server to have a proper reverse DNS entry (which it does) but the A record to match…

@dicko, if it’s for the server to talk to himself, couldn’t he just use localhost (or is Asterisk/FreePBX not listening on it???).

As for accessing the server from the outside if that can’t be fixed on Aruba’s side and @claloano has his own domain name I would create an A record for that server in it…

Good luck and have a nice day!

Nick

the name in reverse DNS does not surprise me
I am surprised that the dns not solve and which had to add it in the Hosts

Try contacting them, maybe it’s something they misconfigured…

Good luck and have a nice day!

Nick

There are
I talked to the supplier
And 'normal and reverse DNS does not resolve … because by default!
I did not know
Now I must indicate the name hosts and they attribute that to begin and resolve …
They explained to me that those are default Penpo ago were resolved but now things are different …

Mystery solved!

Hi!

Reverse DNS does but they did not bother to create the corresponding forward (ie “normal”) entry…

They can usually auto-generate these entries so I am not quite sure why they did not…

One would expect to have these entries present by default and not have to ask for them…

OK, in this way they are similar to the Internet Service Provider I use at home…

The one I use for my VPS actually let’s me change the reverse DNS entry by myself and of course I have to create the corresponding forward/normal entry in one of my domain names…

Yes, they got lazy… :wink: :wink: :wink:

Case closed… :wink:

Have a nice day!

Nick