MantisBT - BrazilFW 3.x
View Issue Details
0000046BrazilFW 3.x[All Projects] BrazilFW 3.xpublic2010-10-27 23:542010-10-28 23:41
cmartin 
woshman 
normalminoralways
closedfixed 
0000046: Subredes setando DNS1 e DNS2 nos clientes DHCP
Ao adicionar um host DNS no brazilfw.cfg (DNS1 ou DNS2) o host da subrede irá receber este IP como DNS primário. Se a variavel DNSFREECHOICE estiver em 'no', os clientes não conseguiram fazer consultas DNS.

A rotina seta como primario o DNS, ao inves de setar como forwarder:


if [ -n "$DNS1" -o -n "$DNS2" ]; then
   if [ -n "$DNS1" -a -n "$DNS2" ]; then
      REMOTE_DNS="$DNS1,$DNS2"
   elif [ -n "$DNS1" -a -z "$DNS2" ]; then
        REMOTE_DNS="$DNS1"
   elif [ -z "$DNS1" -a -n "$DNS2" ]; then
        REMOTE_DNS="$DNS2"
   fi
fi

Entendo que apenas o DHCP_DNS1 e DHCP_DNS2 devam ser usados, e nao DNS1 e DNS2.
No tags attached.
Issue History
2010-10-27 23:54cmartinNew Issue
2010-10-27 23:54cmartinStatusnew => assigned
2010-10-27 23:54cmartinAssigned To => woshman
2010-10-27 23:56cmartinDescription Updatedbug_revision_view_page.php?rev_id=26#r26
2010-10-28 21:59cmartinNote Added: 0000101
2010-10-28 23:41woshmanNote Added: 0000102
2010-10-28 23:41woshmanStatusassigned => resolved
2010-10-28 23:41woshmanResolutionopen => fixed
2010-10-28 23:41woshmanStatusresolved => closed

Notes
(0000101)
cmartin   
2010-10-28 21:59   
Modificando a função no rc.subnet, com o seguinte teste:


if [ "$DNSSERVER" != "yes" ]; then
   if [ -n "$DNS1" -o -n "$DNS2" ]; then
      if [ -n "$DNS1" -a -n "$DNS2" ]; then
         REMOTE_DNS="$DNS1,$DNS2"
      elif [ -n "$DNS1" -a -z "$DNS2" ]; then
         REMOTE_DNS="$DNS1"
      elif [ -z "$DNS1" -a -n "$DNS2" ]; then
         REMOTE_DNS="$DNS2"
      fi
   fi
fi

resolve o problema.
(0000102)
woshman   
2010-10-28 23:41   
resolvido na versão 3.0.240