I'm running duplicity to a B2 account. I recently updated duplicity and b2. Now when I try to do my updates, it warns that my domain has changed. Looks like this is coming from python itself:
Code: Select all
import socket
print(socket.gethostname())
print(socket.getfqdn())
results in my "non-qualified" hostname (let's call it "fred", it's one word without any dots), then "a[ip address].deploy.static.akamaitechnologies.com". And that's not my internal or external IP address, either. A quick nslookup on "fred" (again, not the real hostname) gives that same address, so it looks like it's resolving the hostname to an IP using DNS, then using reverse-DNS to get the FQDN. Weird.
So I tried putting "fred" on each 127.0.0.1 line of /etc/hosts. Now it returns "fred" and "localhost.localdomain".
Here's my hosts file at the moment:
Code: Select all
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 fred
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 fred
If I put "fred." (note the dot) at the start of the first line, then it reports "fred" and "fred." respectively. I'm trying to get getfqdn to say exactly "fred", so duplicity won't give warnings (or make me override it). Any idea how to get socket.getfqdn() to report "fred"?