CREAR UN SERVIDOR DE DOMINIO LLAMADO: www.crisdominiofree.org veo cual en la ip de mi pc que será servidor DNS # ifconfig 192.168.7.58 /etc/defaults/rc.conf named_enable="YES" ver que direccion ip tengo en freebsd. # cd /etc/namedb # vim named.conf para habilidar el listen en named.conf dejo mi ip asi en la linea del listen listen-on { 127.0.0.1; 192.168.7.58; }; luego voto y reinicio el servicio # killall -9 named # named nuevamente entro al archivo /etc/namedb/named.conf agrego la siguiente linea: # vim /etc/namedb/named.conf zone "crisdominiofree.org" { type master; file "/etc/namedb/master/crisdominiofree.org.db"; }; despues creo el archivo de configuracion en de mi dominio en base a un archivo llamado empty.db # cd /etc/namedb/master # cp empty.db crisdominiofree.org.db despues configuro el archivo "crisdominiofree.org.db" y lo dejo tal como se ve en las siguientes lineas: ; $FreeBSD: src/etc/namedb/master/empty.
#!/bin/bash # February 3rd, 2018 export Me=$(basename $0 .sh) export fecha_actual=`date "+%Y-%m-%d_%H%M%S"` inputFile=notas.txt pattern="find" # cut the file here echo "$inputFile" # q: show the file until the pattern, including it. # Q: show the file until the pattern, NOT including it. sed "/$pattern/Q" $inputFile
Comentarios