Python Forum
Python built on a RHEL, Fedora, or CentOS system gives bad getfqdn() Result
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python built on a RHEL, Fedora, or CentOS system gives bad getfqdn() Result
#3
I received an answer from another user off-forum. He received from Cox the following when he reported this:
Quote:"This is expected bahavior[sic]. The Cox Business Online DNS resolvers have NXDOMAIN redirection services that redirect any unknown host to a sponsored search page. You can opt out of this by changing your resolver from .11/.12 to .14."
I did just that, changing my resolv.conf to call .14 for the three servers and the issue is resolved.

Digging into this further, it seems that all of my non-RH systems set the nameserver to 127.0.0.1 and search to build.tolisgroup.com. This results in the proper result in all cases.

This still does not answer the oddity that the RH systems' "hostname --fqdn" and the Python "socket.getfqdn()" return different results.
Reply


Messages In This Thread
RE: Python built on a RHEL, Fedora, or CentOS system gives bad getfqdn() Result - by tolistim - May-16-2018, 06:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to open port 8080 in CentOS 7 nikos 0 4,310 Mar-02-2019, 03:02 PM
Last Post: nikos

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020