No I find the problem, there's one error on patch
Sorry.
myownb3.com problems
Re: myownb3.com problems
The easiest way to do that is to query directly the DNS servers with dig with something like : dig @ns1.excito.org <name>.myownb3.com
The DNS team at rodeus is working on the issue, we should have more news tomorrow morning. Thanks for your patience.
Re: myownb3.com problems
Good point.
Sharing my script for those interested:
Sharing my script for those interested:
Code: Select all
#!/bin/sh
if [ -z "$1" ]; then
myname=$(echo $0 | sed "s/^.*\/\([^\/][^\/]*\)$/\1/")
echo "Usage: $myname <identity>"
exit
fi
newip=$(dig @ns1.excito.org $1.myownb3.com | grep -v "^[;]" | grep -v "^$" | awk '{print $5}')
oldip=$(grep "$1.myownb3.com" /etc/hosts | awk '{print $1}')
if [ -z "${oldip}" ]; then
#ensure newline at end of file
sed -i -e '$a\' /etc/hosts
# append record
echo "add record for $1.myownb3.com (${newip})"
echo -e "${newip}\t$1.myownb3.com" >> /etc/hosts
/etc/init.d/dnsmasq restart
exit
fi
if [ -z "${newip}" ]; then
echo "ERROR: record not found"
exit
fi
if [ "${newip}" != "${oldip}" ]; then
# replace existing record
echo "update record for $1.myownb3.com (${oldip} => ${newip})"
sed -e "s/^${oldip}\s/${newip}\t/" -i /etc/hosts
/etc/init.d/dnsmasq restart
exit
fi
-
- Posts: 6
- Joined: 25 Dec 2017, 04:11
Re: myownb3.com problems
All is working again.
Thanks for your effort.
Jos
Thanks for your effort.
Jos