DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 24th June 2020
fvgit's Avatar
fvgit fvgit is offline
Spikes in tights
 
Join Date: May 2016
Location: perl -MMIME::Base64 -le 'print decode_base64("U2hlcndvb2QgRm9yZXN0")'
Posts: 314
Default cdio(1) CDDB lookup & /etc/services

Just a little heads-up for anyone using cdio's CDDB lookup capabilities. Probably not too many people nowadays, but here it goes:

You may have noticed that freedb has finally shut down their server. There have been several topics about this on hacker news, reddit or heise and probably elsewhere, too.

cdio(1) currently has freedb.freedb.org as compiled-in default which now obviously doesn't work anymore:

Code:
fvgit@sherwood $ cdio cddbinfo                          
cdio: no address associated with name
Luckily, as the manpage informs us, you can supply an alternative CDDB host:
Code:
   -d host:port
             Specifies a CDDB host [default: freedb.freedb.org:cddb].
So we simply do a:
Code:
fvgit@sherwood $ cdio -d gnudb.gnudb.org:cddb cddbinfo
cdio: cddb: Operation timed out


Code:
fvgit@sherwood $ grep cddb /etc/services
cddb            888/tcp         cddbp           # Audio CD Database

https://www.iana.org/assignments/ser...rt-numbers.txt

Code:
Service Name   Port Number Transport         Description                                Assignee                                                 Contact                          Registration Modification                  Reference                    Service   Unauthorized                       Assignment Notes
                            Protocol                                                                                                                                                   Date         Date                                                     Code    Use Reported
(...)
cddbp               888        tcp    CD Database Protocol         [Steve_Scherf]                                        [Steve_Scherf]  
(...)
cddbp-alt          8880        tcp    CDDBP                        [Steve_Scherf]                                        [Steve_Scherf]
cddbp-alt          8880        udp    CDDBP                        [Steve_Scherf]                                        [Steve_Scherf]

Ok, let's try again:
Code:
fvgit@sherwood $  cdio -d gnudb.gnudb.org:8880 cddbinfo  
Pet Shop Boys / Discography - The Complete Singles Collection(misc)
-------------------------------------------------
    1   4:00.07  West End Girls [1985]
    2   4:18.45  Love Comes Quickly [1986]
    3   3:38.00  Opportunities (Let's Make Lots of Money) [1986]
    4   4:04.23  Suburbia [1986]
    5   5:01.22  It's a Sin [1987]
    6   4:20.10  What Have I Done to Deserve This? [1987]
    7   3:33.20  Rent [1987]
    8   3:54.68  Always on My Mind [1987]
    9   4:17.42  Heart [1988]
   10   4:18.25  Domino Dancing [1988]
   11   4:47.73  Left to My Own Devices [1988]
   12   4:20.10  It's Alright [1989]
   13   4:00.57  So Hard ['1990]
   14   4:51.23  Being Boring [1990]
   15   4:32.25  Where the Streets Have No Name (I Can't Take My Eyes Off You) [1991]
   16   4:15.15  Jealousy [1991]
   17   4:14.32  DJ Culture [1991]
   18   4:23.23  Was It Worth It? [1991]
  170  76:54.28


gnudb.org has the port number it is using for cddbp lookups listed on it's website. Just don't fall into the trap like I did assuming sth. was wrong when following the example url from the manpage which uses a service name. OpenBSD /etc/services simply doesn't list the alternative port, that's all.
Reply With Quote
  #2   (View Single Post)  
Old 25th June 2020
Bronzu's Avatar
Bronzu Bronzu is offline
An experienced newbie
 
Join Date: Jun 2020
Location: Yurop, Polend
Posts: 9
Default

That's very nice to know! Also the website you linked with port numbers is going to be very useful! Also you mentioned:
Quote:
cdio(1) currently has freedb.freedb.org as compiled-in default which now obviously doesn't work anymore:
And sure enough checking anonCVS confirms the thing hasn't been touched in a looong time. Have you reported it as a bug so that it'd be replaced with another database in future releases?
__________________
If you tell me "who would care enough to hack me" or "nothing to hide nothing to fear", then be sure we won't get along.
Reply With Quote
  #3   (View Single Post)  
Old 25th June 2020
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 304
Default

A diff already went to tech@

https://marc.info/?l=openbsd-tech&m=159303939215074&w=2
Reply With Quote
  #4   (View Single Post)  
Old 25th June 2020
Bronzu's Avatar
Bronzu Bronzu is offline
An experienced newbie
 
Join Date: Jun 2020
Location: Yurop, Polend
Posts: 9
Default

Thanks that's good to know.
__________________
If you tell me "who would care enough to hack me" or "nothing to hide nothing to fear", then be sure we won't get along.
Reply With Quote
Reply

Tags
cddb, cdio

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't burn disks with cdio any more acampbell OpenBSD Installation and Upgrading 19 28th March 2020 10:39 PM
secure DNS lookup howto gso OpenBSD Security 6 28th November 2014 08:19 AM
unbound reverse lookup private zone Oko General software and network 2 20th November 2013 03:15 PM
OpenBSD : Ripping and writing music CDs with cdio(1) J65nko Guides 5 30th November 2011 08:33 PM
sendmail host name lookup failure ducu_00 General software and network 9 21st January 2009 02:42 AM


All times are GMT. The time now is 01:55 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick