User:Psy: Difference between revisions

42 editsJoined 23 May 2012
(Created page with "ZO moet het: [quote] 502 ps fax|grep named 503 cat /etc/bind/named.conf 504 cat /etc/bind/named.conf.local 505 cat /etc/bind/nurdspace.lan 506 ping tanaka ...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
ZO moet het:
= CREATIEF MET BIND =


[quote]
eerst backup maken van ALLESSS!!1


  502 ps fax|grep named
  tar --one-file-system -czf /mnt/freek_hier_dus/backup_nurdserver_voordat_ik_er_mee_ging_kutten.tar.gz /
  503  cat /etc/bind/named.conf
 
  504  cat /etc/bind/named.conf.local
bestaande zone definitie kopieren:
  505  cat /etc/bind/nurdspace.lan
   
  506  ping tanaka
   vim /etc/bind/named.conf.local  
  507  hoe
 
  508  cat /etc/bind/nurdspace.lan
nieuwe zone file maken:
  509  cat /etc/bind/named.conf
   
  510  cat /etc/bind/named.conf
  cp /etc/bind/nurdspace.lan /etc/bind/nurdspace.tk
  511  ps faux|grep named
  vim /etc/bind/nurdspace.tk
  512  lsb_release -a
 
  513  lsb_release -a
commentaar op inhoud van deze file:
  514  lsb_release -a
  $ORIGIN .
  515  lsb_release -a
  $TTL 604800    ; 1 week
  516  cat /etc/bind/named.conf
  ; VERVANGEN DOOR ZONE NAME:
  517  cat /etc/bind/named.conf
  nurdspace.lan           IN SOA  localhost. root.localhost. (
  518  cat /etc/bind/named.conf.options
                                1803      ; serial
  519  rndc
                                604800    ; refresh (1 week)
  520  rndc status
                                86400      ; retry (1 day)
  521 cat /etc/bind/named.conf.options
                                2419200    ; expire (4 weeks)
   522  cat /etc/bind/named.conf
                                604800    ; minimum (1 week)
  523  cat /etc/bind/named.conf.local
                                )
  524  cat /etc/bind/rndc.key
                        NS      localhost.
  525  cat /etc/bind/named.conf
                        A      192.168.1.4   ; IP ADRESS ALS JE nurdspace.lan RESOLVED
  526  cat /etc/bind/named.conf.default-zones
  $ORIGIN nurdspace.lan. ; VERVANGEN DOOR ZONE NAME
  527 cat /etc/bind/named.conf.local
   
  528 cat /etc/bind/named.conf.local
  ; AUTOMATISCH TOEGEVOEGD RECORD DOOR DHCP SERVER (via rdnc)
  529  ls /etc/bind
  $TTL 1800      ; 30 minutes
  530  cat /etc/bind/nurdspace.lan.jnl
  android-2b931550c679ce0b A      192.168.1.69     
  531 cat /etc/bind/nurdspace.lan
                        TXT    "312c269a92affd404c87982b113db72932"
  532  dig
   
  533 cat /etc/bind/nurdspace.lan
  ; VAST INGESTELD RECORD
  534 dig tanaka A
  $TTL 604800    ; 1 week
  535 dig tanaka A @localhost
  buffalo                A      192.168.1.45
  536 dig tanaka.nurdspace.lan A @localhost
 
  537  dig tanaka.nurdspace.lan TXT @localhost
 
  538  cat /etc/bind/nurdspace.lan
 
  539  ls -al
 
  540  cd /etc/bind
   
  541  ls
MAKE IT SO:
  542  vim named.conf.local
 
  543  find /
  /etc/init.d/bind9 restart
  544  ls -la
 
   545  cat nurdspace.lan
 
  546 cat > nurdspace.tk
nu is alles stuk en fucked , succes :P
  547  df -h
  548  cd ..
  549 du -h
  550  du -h
  551 du -h
  552 du -h
  553 du -h
  554  du -h
  555  du -h
  556  mount
  557  df -h
  558  rsync -avx /etc /mnt/freek_hier_dus/configzznurservur
  559  df -h
  560  screen
  561  ls -la
  562  cd bind
  563  ls
  564  cat nurdspace.tk
  565  vim nurdspace.tk
  566  service named restart
  567  service bind restart
  568 /etc/init.d/bind9 restart
  569 ping google.com
  570 ping camera1
  571 ping nurdspace.tk
  572  vim named.conf.local
  573  cp nurdspace.tk nurdspace.nl
  574  vim nurdspace.nl
  575  mv nurdspace.nl space.nurdspace.nl
  576 vim space.nurdspace.nl
  577  vim named.conf.local
  578  vim named.conf.local
  579 /etc/init.d/bind9 restart
  580  ping nurdspace.tk
  581  history
[/quote]

Latest revision as of 00:13, 22 November 2012

CREATIEF MET BIND

eerst backup maken van ALLESSS!!1

tar --one-file-system -czf /mnt/freek_hier_dus/backup_nurdserver_voordat_ik_er_mee_ging_kutten.tar.gz /

bestaande zone definitie kopieren:

 vim /etc/bind/named.conf.local 

nieuwe zone file maken:

cp /etc/bind/nurdspace.lan /etc/bind/nurdspace.tk
vim /etc/bind/nurdspace.tk

commentaar op inhoud van deze file:

$ORIGIN .
$TTL 604800     ; 1 week
; VERVANGEN DOOR ZONE NAME:
nurdspace.lan           IN SOA  localhost. root.localhost. (
                                1803       ; serial
                                604800     ; refresh (1 week)
                                86400      ; retry (1 day)
                                2419200    ; expire (4 weeks)
                                604800     ; minimum (1 week)
                                )
                        NS      localhost.
                        A       192.168.1.4   ; IP ADRESS ALS JE nurdspace.lan RESOLVED
$ORIGIN nurdspace.lan. ; VERVANGEN DOOR ZONE NAME

; AUTOMATISCH TOEGEVOEGD RECORD DOOR DHCP SERVER (via rdnc)
$TTL 1800       ; 30 minutes
android-2b931550c679ce0b A      192.168.1.69      
                        TXT     "312c269a92affd404c87982b113db72932"

; VAST INGESTELD RECORD
$TTL 604800     ; 1 week 
buffalo                 A       192.168.1.45



MAKE IT SO:

/etc/init.d/bind9 restart


nu is alles stuk en fucked , succes :P