Category Archives: bind9

Configure dns server

I have several questions about dns. I have apache server on my computer and static ip and i bought domain. So when i enter in my browser , it redirects me to my site. Its ok. But i want to setup my own dns server on the same computer where i have my site. I set up bind9. Here are some questions:

  1. Should i buy two domain's, so there will be my dns server and is it necessarily that ns will look like or its ok if it is ?
  2. When i buy domain for my dns server, should i add record (on the site where i bought it) @ A "mi ip where my site is ?
  3. When i do this, i must enter ns( or in site where i bought domain (my site) ? It will work because dns use 53 port, and apache use 80 port ?
  4. Did i correctly write int /etc/bind ?

$TTL 604800

@   IN  SOA (
                  2     ; Serial
             604800     ; Refresh
              86400     ; Retry
            2419200     ; Expire
             604800 )   ; Negative Cache TTL
    IN  A

@   IN  NS ( ??
@   IN  A ??? or there must be my static ip addresse ??
@   IN  AAAA    ::1
ns  IN  A

move domain from one server to another?

I have a website on a shared hosting and I'm trying to move it to an unmanaged VPS the thing that I have set up my server and tried this tutorial to make my domain name point at my server but I had no luck.

because when ever I try to do this : ping

I still get the old host ip instead of mu new one.

I have waited more than 48 hours.

Do I have to delete some files on my old host ? or there is something i'm missing ?


How to fixed to access site from wrong domain on LAMP server which installed ispconfig?

I've created a LAMP/Ubuntu server instance and installed ispconfig by follow guide here

After the installation, I've set the dns settings for the domain( which I've entered as server host which is ( and created the site for the domain. Then I've added two other sites too( and

Now content accessed from and all the A records I've added to these domains. In addition while browsing in it can be redirect to subdomains or I've thought that PHP $_SERVER array has some wrong values too.

How can I solve that issue?

bind9, Apache Virtual Host and DNS_PROBE_FINISHED_NXDOMAIN

What follow are all the classical steps I've made for many years. And now they dont work on recent Debian distros. I've just installed a fresh Mint 17 (and it's not only here that the problem seems to be, it's on all recent versions of a lot of my students Debian-based distros). I've done all classical step to add a virtual host:

(1) edit /etc/hosts and add a new entry:

(2) ping it to make sure there's no typo:

# ping
PING ( 56(84) bytes of data.
64 bytes from localhost ( icmp_seq=1 ttl=64 time=0.024 ms

(3) create a new vhost file: /etc/apache2/sites-available/

<VirtualHost *:80>    
    DocumentRoot /var/www/infosup    

    <Directory />    
       AllowOverride None    
       Order Deny,Allow    
       Deny from all    

(4) make a symbolic link to enable it:

# cd /etc/apache2/sites-enabled
# sudo ln -s ../sites-available/
# ln -al
total 0
lrwxrwxrwx 000-default.conf -> ../sites-available/000-default.conf
lrwxrwxrwx -> ../sites-available/

(5) restart the web server:

sudo service apache2 restart
 * Restarting web server apache2 (blabla)
 [ OK ]

(6) On the web page of the webbrowser (whatever program I use - Chrome or Firefox) I get:


What are the correct steps to add to my local DNS (bind9) server so that it point all the time to