Error: === [root@host ~]# yum update Loading “installonlyn” plugin Setting up Update Process Setting up repositories Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was [Errno 4] IOError: Error: Cannot find a valid baseurl for repo: base Fix: === This error is due to the disabled recursion queries in /etc/named.conf file. \ From: ==== options { directory [...]
Archive for the ‘Dns’ Category
Yum Update Error
Posted in Dns, GENERAL, LINUX, VPS on January 1, 2009 | Leave a Comment »
Replacing /var/named domains IP addresses with perl
Posted in Dns, GENERAL, LINUX, SCRIPT on December 31, 2008 | Leave a Comment »
Sometimes you moved a domain from one server to another and you do need to change DNS quickly. Perl: === To do it: perl -i.bak -pe “s/0.0.0.0/1.2.3.4/g” /var/named/domain.com.db This example shows how to change from IP 0.0.0.0 to 1.2.3.4 It do also make a backup of /var/named/domain.com.db as /var/named/domain.com.db.bkp If you do not want backup [...]