herlesupreeth / Kamailio_IMS_Config

Fixed version of Kamailio IMS configuration files for basic calling
45 stars 36 forks source link

ping pcscf failed #20

Open bluejade008 opened 2 years ago

bluejade008 commented 2 years ago

Hi teacher,

I have already compiled Kamailio, created mysql database, and modify dns server configuration according to the operation setps which are described on the web link: https://open5gs.org/open5gs/docs/tutorial/02-VoLTE-setup/

However even though I try to modify the dns server configuration many times, the action of "ping pcscf" is always failing, I can't understand why the action couldn't be successful, would you like to instruct me?

The logs are attached. MobaXterm_172.17.40.25root_20220307_153957.txt

here dns server is always unavailable, I went through some documents, it's doubted that the reverse domain name parsing couldn't be configured, the config file "ims-mcc001...." is only identified as the forward domain parsing, the shortage of its reverse name parsing can result in dns failing. I'm not sure if my thinking is correct or not, please instruct me.


root@DN2:/etc/bind# systemd-resolve --status | grep 'DNS Servers' -A2 DNS Servers: 192.168.14.15 DNS Domain: ims.mnc460.mcc02.3gppnetwork.org epc.mnc460.mcc02.3gppnetwork.org

     DNS Servers: 8.8.8.8

root@DN2:/etc/bind# ping pcscf ping: pcscf: Name or service not known root@DN2:/etc/bind# systemctl status bind9 ● bind9.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/bind9.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2022-03-07 14:49:36 HKT; 44min ago Docs: man:named(8) Process: 5500 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS) Main PID: 5504 (named) Tasks: 4 (limit: 2322) CGroup: /system.slice/bind9.service └─5504 /usr/sbin/named -f -u bind

Mar 07 14:49:52 DN2 named[5504]: checkhints: b.root-servers.net/A (192.228.79.201) extra record in hints Mar 07 14:49:52 DN2 named[5504]: checkhints: l.root-servers.net/AAAA (2001:500:9f::42) missing from hints Mar 07 14:49:52 DN2 named[5504]: checkhints: l.root-servers.net/AAAA (2001:500:3::42) extra record in hints Mar 07 14:49:56 DN2 named[5504]: resolver priming query complete Mar 07 14:49:56 DN2 named[5504]: checkhints: b.root-servers.net/A (199.9.14.201) missing from hints Mar 07 14:49:56 DN2 named[5504]: checkhints: b.root-servers.net/A (192.228.79.201) extra record in hints Mar 07 14:49:56 DN2 named[5504]: checkhints: b.root-servers.net/AAAA (2001:500:200::b) missing from hints Mar 07 14:49:56 DN2 named[5504]: checkhints: b.root-servers.net/AAAA (2001:500:84::b) extra record in hints Mar 07 14:49:56 DN2 named[5504]: checkhints: l.root-servers.net/AAAA (2001:500:9f::42) missing from hints Mar 07 14:49:56 DN2 named[5504]: checkhints: l.root-servers.net/AAAA (2001:500:3::42) extra record in hints root@DN2:/etc/bind# ping pcscf ping: pcscf: Name or service not known root@DN2:/etc/bind# logs.zip

root@DN2:/etc/bind# dig -t A ims.mnc460.mcc02.3gppnetwork.org

; <<>> DiG 9.11.3-1ubuntu1.16-Ubuntu <<>> -t A ims.mnc460.mcc02.3gppnetwork.org ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 15084 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ; COOKIE: ab47d7ee02636609398704c662270dc803a8cf426c2822af (good) ;; QUESTION SECTION: ;ims.mnc460.mcc02.3gppnetwork.org. IN A

;; AUTHORITY SECTION: 3gppnetwork.org. 10800 IN SOA ns0.dnsmadeeasy.com. hostmaster.kerna.ie. 2014094706 43200 3600 2419200 86400

;; Query time: 165 msec ;; SERVER: 192.168.14.15#53(192.168.14.15) ;; WHEN: Tue Mar 08 16:03:20 HKT 2022 ;; MSG SIZE rcvd: 163

root@DN2:/etc/bind# dig -x 192.168.14.15

; <<>> DiG 9.11.3-1ubuntu1.16-Ubuntu <<>> -x 192.168.14.15 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 35337 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ; COOKIE: 39dd1a863f9de01ccf8e986a62270dd2d09606393b6a22b5 (good) ;; QUESTION SECTION: ;15.14.168.192.in-addr.arpa. IN PTR

;; AUTHORITY SECTION: 168.192.IN-ADDR.ARPA. 86400 IN SOA 168.192.IN-ADDR.ARPA. . 0 28800 7200 604800 86400

;; Query time: 0 msec ;; SERVER: 192.168.14.15#53(192.168.14.15) ;; WHEN: Tue Mar 08 16:03:30 HKT 2022 ;; MSG SIZE rcvd: 138

herlesupreeth commented 2 years ago

ping pcscf will not work.

you have to do ping pcscf.ims.mnc460.mcc02.3gppnetwork.org