You are not logged in.

#1 2011-11-08 16:09:08

fast_rizwaan
Member
Registered: 2010-04-01
Posts: 65

dictd local server not working for offline dictionary lookups

I'm trying to have dictd offline lookups. I installed dictd, but the dictd server is refusing to start: this what I did:

sudo pacman -S dictd
packer dictd-devils ;#dictd needs at least 1 dictionary database

Now when running dictd gives error

[rizvan@Archlinux ~]$ sudo dictd
/etc/dict/dictd.conf:25: syntax error, unexpected $end
/etc/dict/dictd.conf:25: #LASTLINE
/etc/dict/dictd.conf:25:          ^
dictd (yyerror): parse error
parse error

but running dictd service, looks ok

[rizvan@Archlinux ~]$ sudo /etc/rc.d/dictd start
:: Check dictd configuration                                             [DONE] 
:: Scanning for dictionaries...                                          [DONE] 
2 dictionary indexes found.
:: Start dictd daemon                                                    [DONE] 

dictd service stop also fails

[rizvan@Archlinux ~]$ sudo /etc/rc.d/dictd stop
:: Stop dictd daemon                                                     [FAIL] 
[rizvan@Archlinux ~]$ 

but nmap is not showing dictd server

[rizvan@Archlinux ~]$ nmap localhost

Starting Nmap 5.51 ( http://nmap.org ) at 2011-11-08 21:31 IST
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00034s latency).
Other addresses for localhost (not scanned): 127.0.0.1
rDNS record for 127.0.0.1: localhost.localdomain
All 1000 scanned ports on localhost (127.0.0.1) are closed

Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds

ps also not showing dictd running

[rizvan@Archlinux ~]$ ps ax|grep dict
 4427 pts/0    S+     0:00 grep dict
[rizvan@Archlinux ~]$ 

Here are the dict.conf and dictd.conf

[rizvan@Archlinux ~]$ cat /etc/dict/dict.conf
# This is the configuration file for dict.
# Usually all you will ever need here is the server keywords.
# Refer to the dict manpage for other options.
# It will only check the second server if the first fails
server localhost
server dict.org
[rizvan@Archlinux ~]$ cat /etc/dict/dictd.conf
# dictd configuration file.
# whipped up by michael conrad tilstra <michael@gentoo.org>

# Informational message

global {
    site site.info
}

# who's allowed.  You might want to change this.
access {
  allow *
}

# Dictionaries are listed below.
# The initrc script scans /usr/lib/dict and adds all of the dictionaries
# it finds here.
#
# The initrc script will delete everything after the the last line and
# replace it with what it finds.  So add all of your things above.
#
# If this is a problem for people, contact me and
# we can work out a different method.
#
#LASTLINE
database devils { data "/usr/share/dictd/devils.dict.dz"
         index "/usr/share/dictd/devils.index" }

I'd appreciate any help. thanks.

Offline

Board footer

Powered by FluxBB